public enum TypeObject extends java.lang.Enum<TypeObject> implements ObjectType
Enum Constant and Description |
---|
TYPE
Type.
|
TYPE_CONSTRUCTOR
Package.
|
TYPE_PACKAGE
Package.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPathName()
Get the name as a path (which is used to point the XML data file).
|
java.lang.Class<?> |
getTargetClass()
Get the target class (which can be instantiated by a
FactoryObjectGame ). |
static TypeObject |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeObject[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeObject TYPE
public static final TypeObject TYPE_PACKAGE
public static final TypeObject TYPE_CONSTRUCTOR
public static TypeObject[] values()
for (TypeObject c : TypeObject.values()) System.out.println(c);
public static TypeObject valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?> getTargetClass()
ObjectType
FactoryObjectGame
). The target class should have a
constructor like the main one: ObjectGame.ObjectGame(SetupGame)
.getTargetClass
in interface ObjectType
public java.lang.String getPathName()
ObjectType
ObjectTypeUtility.getPathName(Enum)
can provide a default implementation.getPathName
in interface ObjectType