Class FactTemplateObjectType

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, ObjectType

    public class FactTemplateObjectType
    extends java.lang.Object
    implements ObjectType
    See Also:
    Serialized Form
    • Field Detail

      • factTemplate

        protected FactTemplate factTemplate
        FieldTemplate.
    • Constructor Detail

      • FactTemplateObjectType

        public FactTemplateObjectType()
      • FactTemplateObjectType

        public FactTemplateObjectType​(FactTemplate factTemplate)
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getFactTemplate

        public FactTemplate getFactTemplate()
        Return the Fact Template.
        Returns:
        The Fact Template
      • matches

        public boolean matches​(java.lang.Object object)
        Determine if the passed Object belongs to the object type defined by this objectType instance.
        Parameters:
        object - The Object to test.
        Returns:
        true if the Object matches this object type, else false.
      • isAssignableFrom

        public boolean isAssignableFrom​(java.lang.Class<?> clazz)
        Specified by:
        isAssignableFrom in interface ObjectType
      • isAssignableTo

        public boolean isAssignableTo​(java.lang.Class<?> clazz)
        Specified by:
        isAssignableTo in interface ObjectType
      • isEvent

        public boolean isEvent()
        Description copied from interface: ObjectType
        Returns true if the object type represented by this object is an event object type. False otherwise.
        Specified by:
        isEvent in interface ObjectType
        Returns:
      • setEvent

        public void setEvent​(boolean isEvent)
      • getTypeKey

        public java.lang.Object getTypeKey()
        Specified by:
        getTypeKey in interface ObjectType
      • hasField

        public boolean hasField​(java.lang.String name)
        Specified by:
        hasField in interface ObjectType
      • getFieldNames

        public java.util.Collection<java.lang.String> getFieldNames()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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