Direct Known Subclasses:
DataContainerRequestBody

public class DataContainerProperties extends SchemaAttributeProperties
SchemaAttributeProperties represents a data field that is part of a complex schema type.
  • Constructor Details

    • DataContainerProperties

      public DataContainerProperties()
      Default constructor
    • DataContainerProperties

      public DataContainerProperties(DataContainerProperties template)
      Copy/clone constructor.
      Parameters:
      template - template schema attribute to copy.
  • Method Details

    • getElementPosition

      public int getElementPosition()
      Return the position of this schema attribute in its parent schema.
      Overrides:
      getElementPosition in class SchemaAttributeProperties
      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.
      Overrides:
      setElementPosition in class SchemaAttributeProperties
      Parameters:
      elementPosition - int position in schema - 0 means first
    • getMinCardinality

      public int getMinCardinality()
      Return this minimum number of instances allowed for this attribute.
      Overrides:
      getMinCardinality in class SchemaAttributeProperties
      Returns:
      int
    • setMinCardinality

      public void setMinCardinality(int minCardinality)
      Set up the minimum number of instances allowed for this attribute.
      Overrides:
      setMinCardinality in class SchemaAttributeProperties
      Parameters:
      minCardinality - int
    • getMaxCardinality

      public int getMaxCardinality()
      Return the maximum number of instances allowed for this attribute.
      Overrides:
      getMaxCardinality in class SchemaAttributeProperties
      Returns:
      int (-1 means infinite)
    • setMaxCardinality

      public void setMaxCardinality(int maxCardinality)
      Set up the maximum number of instances allowed for this attribute.
      Overrides:
      setMaxCardinality in class SchemaAttributeProperties
      Parameters:
      maxCardinality - int (-1 means infinite)
    • toString

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

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class SchemaAttributeProperties
      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 SchemaAttributeProperties
      Returns:
      int