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 CASCADE
           
static int CATEGORY_DELIMITER
           
static java.lang.String copyright
          IBM standard copyright
static int COUNTRY_CODE
           
static int DATE_FORMAT
           
static int DEFAULT_VALUE
           
static int DEFAULT_VALUE_RULE
           
static int DISPLAY_NAME
           
static int DURATION
           
static int EDITABLE
           
static int ENCODING
           
static int GROUP
           
static int HELP_URL
           
static int HIDDEN
           
static int LANGUAGE_CODE
           
static int LINK_TO_CATALOG
           
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 OCCURRENCES_TO_DISPLAY
           
static int PATTERN
           
static int PRECISION
           
static int RUNTIME_SEARCHABLE
           
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 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
IBM standard copyright

CATEGORY_DELIMITER

public static final int CATEGORY_DELIMITER

DEFAULT_VALUE

public static final int DEFAULT_VALUE

DEFAULT_VALUE_RULE

public static final int DEFAULT_VALUE_RULE

DURATION

public static final int DURATION

ENCODING

public static final int ENCODING

LINK_TO_CATALOG

public static final int LINK_TO_CATALOG

MAXLENGTH

public static final int MAXLENGTH

MAX_EXCLUSIVE

public static final int MAX_EXCLUSIVE

MAX_INCLUSIVE

public static final int MAX_INCLUSIVE

MAX_OCCURRENCE

public static final int MAX_OCCURRENCE

MINLENGTH

public static final int MINLENGTH

MIN_EXCLUSIVE

public static final int MIN_EXCLUSIVE

MIN_INCLUSIVE

public static final int MIN_INCLUSIVE

MIN_OCCURRENCE

public static final int MIN_OCCURRENCE

NAME

public static final int NAME

NUMBER_ENUMERATION

public static final int NUMBER_ENUMERATION

PATTERN

public static final int PATTERN

PRECISION

public static final int PRECISION

SCALE

public static final int SCALE

STRING_ENUMERATION

public static final int STRING_ENUMERATION

TYPE

public static final int TYPE

WHITESPACE

public static final int WHITESPACE

VALIDATION_RULE

public static final int VALIDATION_RULE

VALUE_RULE

public static final int VALUE_RULE

NON_PERSISTED_ATTRIBUTE_RULE

public static final int NON_PERSISTED_ATTRIBUTE_RULE

STRING_ENUMERATION_RULE

public static final int STRING_ENUMERATION_RULE

EDITABLE

public static final int EDITABLE

UNIQUE

public static final int UNIQUE

LOOKUP_TABLE

public static final int LOOKUP_TABLE

SEQUENCE_NAME

public static final int SEQUENCE_NAME

SEQUENCE_INCREMENT

public static final int SEQUENCE_INCREMENT

SEQUENCE_START

public static final int SEQUENCE_START

GROUP

public static final int GROUP

DATE_FORMAT

public static final int DATE_FORMAT

LANGUAGE_CODE

public static final int LANGUAGE_CODE

COUNTRY_CODE

public static final int COUNTRY_CODE

LOCALIZED

public static final int LOCALIZED

LOCALE_IDENTIFIER

public static final int LOCALE_IDENTIFIER

LOCALE_NODE

public static final int LOCALE_NODE

DISPLAY_NAME

public static final int DISPLAY_NAME

HELP_URL

public static final int HELP_URL

HIDDEN

public static final int HIDDEN

NON_PERSISTED

public static final int NON_PERSISTED

OCCURRENCES_TO_DISPLAY

public static final int OCCURRENCES_TO_DISPLAY

CASCADE

public static final int CASCADE

RUNTIME_SEARCHABLE

public static final int RUNTIME_SEARCHABLE
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