Class ObjectType

  • public class ObjectType
    extends java.lang.Object

    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 Detail

      • PAGE

        public static final ObjectType PAGE

        A page object.

      • RECORD

        public static final ObjectType RECORD

        A record object.

      • NEWS

        public static final ObjectType NEWS

        A news headline object.

      • STORY

        public static final ObjectType STORY

        A news story object.

      • RECORD_TYPE2

        public static final ObjectType RECORD_TYPE2

        A type 2 record object.

      • RECORD_TYPE3

        public static final ObjectType RECORD_TYPE3

        A type 3 record object.


        public static final ObjectType CONTAINER

        A container object.


        public static final ObjectType PERMISSION

        A permission object.

      • UNKNOWN

        public static final ObjectType UNKNOWN

        The object exists but Transformer does not know what type it is yet.

      • GENERIC

        public static final ObjectType GENERIC

        The object does not exist in the Transformer cache.


        public static final ObjectType UNDEFINED

        The object does not exist in the Transformer cache.

    • Method Detail

      • getObjectType

        public static ObjectType getObjectType​(int typeCode)

        Gets the ObjectType that represents the specified code.

        The valid codes are:

        typeCode - The code used to describe an object type.
        The ObjectType that corresponds to the specified code. If the code does not match any of the available ObjectTypes, then null is returned.
      • getCode

        public int getCode()

        Gets the code that represents the object's type.

        The object's code.
      • getDescription

        public java.lang.String getDescription()

        Gets the description of the object's type.

        The object's description.
      • toString

        public java.lang.String toString()

        Returns a string that describes the ObjectType, including its description and code.

        toString in class java.lang.Object
        A string that represents the ObjectType.
      • equals

        public boolean equals​(java.lang.Object object)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object