|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.meta.impl.NiteAttribute
public class NiteAttribute
A attribute as referred to in the metadata
| 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 |
|---|
public NiteAttribute(java.lang.String name,
int type,
java.util.ArrayList values)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface NAttributepublic int getType()
getType in interface NAttributepublic java.util.List getEnumeratedValues()
getEnumeratedValues in interface NAttributepublic boolean isSerialized()
isSerialized in interface NAttributepublic void setSerialized(boolean bool)
setSerialized in interface NAttribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||