net.sourceforge.nite.meta
Interface NAttribute

All Known Implementing Classes:
NiteAttribute

public interface NAttribute

NAttribute describes an attribute along with its valid values if it is enumerated.


Field Summary
static int ENUMERATED_ATTRIBUTE
           
static int NUMBER_ATTRIBUTE
           
static int STRING_ATTRIBUTE
           
 
Method Summary
 java.util.List getEnumeratedValues()
          Find the possible stringvalues for this attribute - returns a List of Strings
 java.lang.String getName()
          returns the name of the attribute
 int getType()
          returns one of STRING_ATTRIBUTE, NUMBER_ATTRIBUTE or ENUMERATED_ATTRIBUTE.
 boolean isSerialized()
          returns true if the attribute should be serialized
 void setSerialized(boolean bool)
          set whether this attribute will be serialized if the corpus is saved.
 

Field Detail

STRING_ATTRIBUTE

static final int STRING_ATTRIBUTE
See Also:
Constant Field Values

NUMBER_ATTRIBUTE

static final int NUMBER_ATTRIBUTE
See Also:
Constant Field Values

ENUMERATED_ATTRIBUTE

static final int ENUMERATED_ATTRIBUTE
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
returns the name of the attribute


getType

int getType()
returns one of STRING_ATTRIBUTE, NUMBER_ATTRIBUTE or ENUMERATED_ATTRIBUTE.


getEnumeratedValues

java.util.List getEnumeratedValues()
Find the possible stringvalues for this attribute - returns a List of Strings


isSerialized

boolean isSerialized()
returns true if the attribute should be serialized


setSerialized

void setSerialized(boolean bool)
set whether this attribute will be serialized if the corpus is saved. This affects both the metadata and the associated NOM data.