Package com.priint.pubserver.entity
Enum Class Entity.DataClass
- All Implemented Interfaces:
Serializable,Comparable<Entity.DataClass>,Constable
- Enclosing class:
- Entity
List of possible entity data class.
You can get the type from calling getEntityClass() on an enum value.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Bucket.The Contentmetadata.The Cord.The Keyvalue.The Mediaasset.The Planning.The Price.The Tabledata.The Text. -
Method Summary
Modifier and TypeMethodDescriptionstatic Entity.DataClassforEntityClass(Class<? extends EntityData> clazz) For entity class data class.static Entity.DataClassfromXmlName(String xmlName) From xml name data class.Class<? extends EntityData>get the entity class typeGets xml name.static Entity.DataClassReturns the enum constant of this class with the specified name.static Entity.DataClass[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUCKET
The Bucket.- See Also:
-
TEXT
The Text.- See Also:
-
MEDIAASSET
The Mediaasset.- See Also:
-
KEYVALUE
The Keyvalue.- See Also:
-
CORD
The Cord.- See Also:
-
PRICE
The Price.- See Also:
-
TABLEDATA
The Tabledata.- See Also:
-
PLANNING
The Planning.- See Also:
-
CONTENTMETADATA
The Contentmetadata.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEntityClass
get the entity class type- Returns:
- EntityData subclass
-
getXmlName
Gets xml name.- Returns:
- xmlName String
-
forEntityClass
For entity class data class.- Parameters:
clazz- theEntityData- Returns:
- dataClass
Entity.DataClass
-
fromXmlName
From xml name data class.- Parameters:
xmlName- String- Returns:
- dataClass
Entity.DataClass
-