|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--drawables.DrawableObjectType
Class for handling object types.
| Constructor Summary | |
DrawableObjectType()
Constructor required for reading objects. |
|
DrawableObjectType(java.lang.String name,
int numOfAttributes,
java.lang.String[] attrNames,
java.lang.String[] attrTypes)
Constructor. |
|
| Method Summary | |
static DrawableObjectType |
findObjectType(java.lang.String name)
Search for the object type with the given name. |
int |
getAttributeAsInteger(int i,
java.lang.String attributes)
Returns a distinct attribute as an integer. |
java.lang.String |
getAttributeAsString(int i,
java.lang.String attributes)
Returns a distinct attribute as string. |
java.lang.String |
getAttributeName(int i)
returns the i-th attribute name. |
java.lang.String |
getAttributeType(int i)
returns the i-th attribute yype. |
static DrawableObjectType |
getDefaultType()
Returns a default type. |
java.lang.String |
getName()
Returns the name of the type. |
int |
getNumOfAttributes()
Returns the number of attributes. |
static DrawableObjectType |
getObjectType(java.lang.String name)
Search for the object type with the given name. |
EntryReadable |
read(EntryInput r)
Reads the object type from an entry input. |
static void |
setTerminatingChar(char c)
Sets the terminating char. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DrawableObjectType()
public DrawableObjectType(java.lang.String name,
int numOfAttributes,
java.lang.String[] attrNames,
java.lang.String[] attrTypes)
name - name of the typenumOfAttributes - the number of attributesattrNames - the names of the attributesattrTypes - the types of the attributes| Method Detail |
public static DrawableObjectType findObjectType(java.lang.String name)
name - name of the type
public int getAttributeAsInteger(int i,
java.lang.String attributes)
throws java.lang.NumberFormatException
i - index (0 = first)attributes - the complete attribute string
java.lang.NumberFormatException
public java.lang.String getAttributeAsString(int i,
java.lang.String attributes)
i - index (0 = first)attributes - the complete attribute string
public java.lang.String getAttributeName(int i)
i - index (start=0)
public java.lang.String getAttributeType(int i)
i - index (start=0)
public static DrawableObjectType getDefaultType()
public java.lang.String getName()
public int getNumOfAttributes()
public static DrawableObjectType getObjectType(java.lang.String name)
name - name of the type
public EntryReadable read(EntryInput r)
read in interface EntryReadabler - entry input
public static void setTerminatingChar(char c)
c - char
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||