com.ibm.pim.interfaces.specnode
Interface SpecNodeAttribute


public interface SpecNodeAttribute

Read-only interface for a single attribute of a SpecNode. SpecNodeAttribute can have single or multiple values depending on the attribute type.


Field Summary
static int BIDI_NUMSHAPES
           
static int BIDI_ORIENTATION
           
static int BIDI_SWAP
           
static int BIDI_TEXTSHAPES
           
static int BIDI_TYPEOFTEXT
           
static int CASCADE
           
static int CATEGORY_DELIMITER
           
static java.lang.String copyright
           
static int COUNTRY_CODE
           
static int CURRENCY
           
static int DATE_FORMAT
           
static int DATEONLY
           
static int DEFAULT_VALUE
           
static int DEFAULT_VALUE_RULE
           
static int DURATION
           
static int EDITABLE
           
static int ENCODING
           
static int EXCEL_DATE_FORMAT
           
static int GROUP
           
static int HELP_URL
           
static int HIDDEN
           
static int INDEXED
           
static int LANGUAGE_CODE
           
static int LINK_TO_CATALOG
           
static int LOCALE
           
static int LOCALE_IDENTIFIER
           
static int LOCALE_NODE
           
static int LOCALIZED
           
static int LOOKUP_TABLE
           
static int MAX_EXCLUSIVE
           
static int MAX_INCLUSIVE
           
static int MAX_OCCURRENCE
           
static int MAXLENGTH
           
static int MIN_EXCLUSIVE
           
static int MIN_INCLUSIVE
           
static int MIN_OCCURRENCE
           
static int MINLENGTH
           
static int NAME
           
static int NON_PERSISTED
           
static int NON_PERSISTED_ATTRIBUTE_RULE
           
static int NUMBER_ENUMERATION
           
static int NUMBER_FORMAT
           
static int OCCURRENCES_TO_DISPLAY
           
static int PATTERN
           
static int PRECISION
           
static int SCALE
           
static int SEQUENCE_INCREMENT
           
static int SEQUENCE_NAME
           
static int SEQUENCE_START
           
static int STRING_ENUMERATION
           
static int STRING_ENUMERATION_RULE
           
static int TIMEZONE_DEFAULT
           
static int TYPE
           
static int UNIQUE
           
static int VALIDATION_RULE
           
static int VALUE_RULE
           
static int WHITESPACE
           
 
Method Summary
 int getAttributeType()
          Returns the type of this SpecNode attribute type
 java.lang.String getAttributeValue()
          Returns the String value of this SpecNode attribute.
 java.util.Collection getAttributeValues()
          Returns a java.util.Collection containing the String values of this SpecNode attribute.
 boolean isSingleValued()
          Determine whether the SpecNodeAttribute has single or multiple values.
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values

CATEGORY_DELIMITER

public static final int CATEGORY_DELIMITER
See Also:
Constant Field Values

DEFAULT_VALUE

public static final int DEFAULT_VALUE
See Also:
Constant Field Values

DEFAULT_VALUE_RULE

public static final int DEFAULT_VALUE_RULE
See Also:
Constant Field Values

DURATION

public static final int DURATION
See Also:
Constant Field Values

ENCODING

public static final int ENCODING
See Also:
Constant Field Values

LINK_TO_CATALOG

public static final int LINK_TO_CATALOG
See Also:
Constant Field Values

MAXLENGTH

public static final int MAXLENGTH
See Also:
Constant Field Values

MAX_EXCLUSIVE

public static final int MAX_EXCLUSIVE
See Also:
Constant Field Values

MAX_INCLUSIVE

public static final int MAX_INCLUSIVE
See Also:
Constant Field Values

MAX_OCCURRENCE

public static final int MAX_OCCURRENCE
See Also:
Constant Field Values

MINLENGTH

public static final int MINLENGTH
See Also:
Constant Field Values

MIN_EXCLUSIVE

public static final int MIN_EXCLUSIVE
See Also:
Constant Field Values

MIN_INCLUSIVE

public static final int MIN_INCLUSIVE
See Also:
Constant Field Values

MIN_OCCURRENCE

public static final int MIN_OCCURRENCE
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

NUMBER_ENUMERATION

public static final int NUMBER_ENUMERATION
See Also:
Constant Field Values

PATTERN

public static final int PATTERN
See Also:
Constant Field Values

PRECISION

public static final int PRECISION
See Also:
Constant Field Values

SCALE

public static final int SCALE
See Also:
Constant Field Values

STRING_ENUMERATION

public static final int STRING_ENUMERATION
See Also:
Constant Field Values

TYPE

public static final int TYPE
See Also:
Constant Field Values

WHITESPACE

public static final int WHITESPACE
See Also:
Constant Field Values

VALIDATION_RULE

public static final int VALIDATION_RULE
See Also:
Constant Field Values

VALUE_RULE

public static final int VALUE_RULE
See Also:
Constant Field Values

NON_PERSISTED_ATTRIBUTE_RULE

public static final int NON_PERSISTED_ATTRIBUTE_RULE
See Also:
Constant Field Values

STRING_ENUMERATION_RULE

public static final int STRING_ENUMERATION_RULE
See Also:
Constant Field Values

EDITABLE

public static final int EDITABLE
See Also:
Constant Field Values

UNIQUE

public static final int UNIQUE
See Also:
Constant Field Values

LOOKUP_TABLE

public static final int LOOKUP_TABLE
See Also:
Constant Field Values

SEQUENCE_NAME

public static final int SEQUENCE_NAME
See Also:
Constant Field Values

SEQUENCE_INCREMENT

public static final int SEQUENCE_INCREMENT
See Also:
Constant Field Values

SEQUENCE_START

public static final int SEQUENCE_START
See Also:
Constant Field Values

GROUP

public static final int GROUP
See Also:
Constant Field Values

DATE_FORMAT

public static final int DATE_FORMAT
See Also:
Constant Field Values

TIMEZONE_DEFAULT

public static final int TIMEZONE_DEFAULT
See Also:
Constant Field Values

NUMBER_FORMAT

public static final int NUMBER_FORMAT
See Also:
Constant Field Values

BIDI_TYPEOFTEXT

public static final int BIDI_TYPEOFTEXT
See Also:
Constant Field Values

BIDI_ORIENTATION

public static final int BIDI_ORIENTATION
See Also:
Constant Field Values

BIDI_SWAP

public static final int BIDI_SWAP
See Also:
Constant Field Values

BIDI_NUMSHAPES

public static final int BIDI_NUMSHAPES
See Also:
Constant Field Values

BIDI_TEXTSHAPES

public static final int BIDI_TEXTSHAPES
See Also:
Constant Field Values

LOCALE

public static final int LOCALE
See Also:
Constant Field Values

LANGUAGE_CODE

public static final int LANGUAGE_CODE
See Also:
Constant Field Values

COUNTRY_CODE

public static final int COUNTRY_CODE
See Also:
Constant Field Values

LOCALIZED

public static final int LOCALIZED
See Also:
Constant Field Values

LOCALE_IDENTIFIER

public static final int LOCALE_IDENTIFIER
See Also:
Constant Field Values

LOCALE_NODE

public static final int LOCALE_NODE
See Also:
Constant Field Values

HELP_URL

public static final int HELP_URL
See Also:
Constant Field Values

HIDDEN

public static final int HIDDEN
See Also:
Constant Field Values

NON_PERSISTED

public static final int NON_PERSISTED
See Also:
Constant Field Values

OCCURRENCES_TO_DISPLAY

public static final int OCCURRENCES_TO_DISPLAY
See Also:
Constant Field Values

CASCADE

public static final int CASCADE
See Also:
Constant Field Values

INDEXED

public static final int INDEXED
See Also:
Constant Field Values

CURRENCY

public static final int CURRENCY
See Also:
Constant Field Values

DATEONLY

public static final int DATEONLY
See Also:
Constant Field Values

EXCEL_DATE_FORMAT

public static final int EXCEL_DATE_FORMAT
See Also:
Constant Field Values
Method Detail

getAttributeValue

public java.lang.String getAttributeValue()
Returns the String value of this SpecNode attribute. If the SpecNode has multiple values then it will return the first value.

Returns:
String the attribute value as a String

getAttributeValues

public java.util.Collection getAttributeValues()
Returns a java.util.Collection containing the String values of this SpecNode attribute.

Returns:
Collection of String objects containing values, or null if this is a single value attribute

isSingleValued

public boolean isSingleValued()
Determine whether the SpecNodeAttribute has single or multiple values. If it returns true then use getAttributeValue() otherwise getAttributeValues().

Returns:
true if attribute has only one value, otherwise false.

getAttributeType

public int getAttributeType()
Returns the type of this SpecNode attribute type

Returns:
the attribute type constant for this SpecNode as specified in this class