Class SchemaAttribute

  • Direct Known Subclasses:
    AnalyticsMetadata

    public class SchemaAttribute
    extends SchemaElement
    SchemaAttribute describes a single attribute within a schema. The attribute has a name, order within the parent schema element.
    • Field Detail

      • elementPosition

        protected int elementPosition
      • nativeJavaClass

        protected java.lang.String nativeJavaClass
    • Constructor Detail

      • SchemaAttribute

        public SchemaAttribute()
        Default constructor
      • SchemaAttribute

        public SchemaAttribute​(SchemaAttribute template)
        Copy/clone constructor.
        Parameters:
        template - template schema attribute to copy.
    • Method Detail

      • cloneSchemaElement

        public SchemaElement cloneSchemaElement()
        Return a clone of this schema element. This method is needed because schema element is abstract.
        Specified by:
        cloneSchemaElement in class SchemaElement
        Returns:
        Clone of subclass.
      • getElementPosition

        public int getElementPosition()
        Return the position of this schema attribute in its parent schema.
        Returns:
        int position in schema - 0 means first
      • setElementPosition

        public void setElementPosition​(int elementPosition)
        Set up the position of this schema attribute in its parent schema.
        Parameters:
        elementPosition - int position in schema - 0 means first
      • getNativeJavaClass

        public java.lang.String getNativeJavaClass()
        Returns:
        the nativeJavaClass
      • setNativeJavaClass

        public void setNativeJavaClass​(java.lang.String nativeJavaClass)
        Parameters:
        nativeJavaClass - the nativeJavaClass to set
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class SchemaElement
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class SchemaElement
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return a number that represents the contents of this object.
        Overrides:
        hashCode in class SchemaElement
        Returns:
        int