Class CombinedSchemaRequestBody

  • All Implemented Interfaces:
    Serializable

    public class CombinedSchemaRequestBody
    extends AssetOwnerOMASAPIRequestBody
    CombinedSchemaRequestBody carries the parameters for created a new schema to attach to an asset. A limited number of SchemaAttributes can accompany the SchemaType. If more SchemaAttributes are needed then use addSchemaAttributesToSchema() method.
    See Also:
    Serialized Form
    • Constructor Detail

      • CombinedSchemaRequestBody

        public CombinedSchemaRequestBody()
        Default constructor
      • CombinedSchemaRequestBody

        public CombinedSchemaRequestBody​(CombinedSchemaRequestBody template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getSchemaType

        public SchemaTypeProperties getSchemaType()
        Return the type of owner stored in the owner property.
        Returns:
        OwnerType enum
      • setSchemaType

        public void setSchemaType​(SchemaTypeProperties schemaType)
        Set up the owner type for this asset.
        Parameters:
        schemaType - OwnerType enum
      • getSchemaAttributes

        public List<SchemaAttributeProperties> getSchemaAttributes()
        Return the names of the zones that this asset is a member of.
        Returns:
        list of zone names
      • setSchemaAttributes

        public void setSchemaAttributes​(List<SchemaAttributeProperties> schemaAttributes)
        Set up the names of the zones that this asset is a member of.
        Parameters:
        schemaAttributes - list of zone names
      • equals

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

        public int hashCode()
        Return hash code based on properties.
        Overrides:
        hashCode in class Object
        Returns:
        int