net.sourceforge.nite.meta.impl
Class NiteAttribute

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NiteAttribute
All Implemented Interfaces:
NAttribute

public class NiteAttribute
extends java.lang.Object
implements NAttribute

A attribute as referred to in the metadata

Author:
jonathan

Field Summary
 
Fields inherited from interface net.sourceforge.nite.meta.NAttribute
ENUMERATED_ATTRIBUTE, NUMBER_ATTRIBUTE, STRING_ATTRIBUTE
 
Constructor Summary
NiteAttribute(java.lang.String name, int type, java.util.ArrayList values)
           
 
Method Summary
 java.util.List getEnumeratedValues()
          Find the possible stringvalues for this attribute - returns an ArrayList 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteAttribute

public NiteAttribute(java.lang.String name,
                     int type,
                     java.util.ArrayList values)
Method Detail

getName

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

Specified by:
getName in interface NAttribute

getType

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

Specified by:
getType in interface NAttribute

getEnumeratedValues

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

Specified by:
getEnumeratedValues in interface NAttribute

isSerialized

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

Specified by:
isSerialized in interface NAttribute

setSerialized

public 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.

Specified by:
setSerialized in interface NAttribute