Class ObjectType
This class defines all the types of objects that are supported
by the Transformer. It contains static instances of the available
object types, which can be used to subscribe to data (see
Subscriber.addSubscriptionListener
),
check an updated object's type (see
TransformerData.getObjectType
) and create a new object (see
DSFactory.createTransformerData
).
The available object types are:
- Page
- Record
- News
- Story
- Type 2 record
- Type 3 record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ObjectType
A container object.static final ObjectType
The object does not exist in the Transformer cache.static final ObjectType
A news headline object.static final ObjectType
A page object.static final ObjectType
A permission object.static final ObjectType
A record object.static final ObjectType
A type 2 record object.static final ObjectType
A type 3 record object.static final ObjectType
A news story object.static final ObjectType
The object does not exist in the Transformer cache.static final ObjectType
The object exists but Transformer does not know what type it is yet. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getCode()
Gets the code that represents the object's type.Gets the description of the object's type.static ObjectType
getObjectType
(int typeCode) Gets the ObjectType that represents the specified code.int
hashCode()
toString()
Returns a string that describes the ObjectType, including its description and code.
-
Field Details
-
PAGE
A page object.
-
RECORD
A record object.
-
NEWS
A news headline object.
-
STORY
A news story object.
-
RECORD_TYPE2
A type 2 record object.
-
RECORD_TYPE3
A type 3 record object.
-
CONTAINER
A container object.
-
PERMISSION
A permission object.
-
UNKNOWN
The object exists but Transformer does not know what type it is yet.
-
GENERIC
The object does not exist in the Transformer cache.
-
UNDEFINED
The object does not exist in the Transformer cache.
-
-
Method Details
-
getObjectType
Gets the ObjectType that represents the specified code.
The valid codes are:
- 221 -
PAGE
- 222 -
RECORD
- 223 -
NEWS
- 224 -
STORY
- 225 -
RECORD_TYPE2
- 226 -
RECORD_TYPE3
- 228 -
CONTAINER
- 230 -
PERMISSION
- 200 -
UNKNOWN
- -1 -
UNDEFINED
- Parameters:
typeCode
- The code used to describe an object type.- Returns:
- The ObjectType that corresponds to the specified code. If the code does not match any of the available ObjectTypes, then null is returned.
- 221 -
-
getCode
public int getCode()Gets the code that represents the object's type.
- Returns:
- The object's code.
-
getDescription
Gets the description of the object's type.
- Returns:
- The object's description.
-
toString
Returns a string that describes the ObjectType, including its description and code.
-
equals
-
hashCode
public int hashCode()
-