Class ParamInfoImpl

java.lang.Object
com.adobe.xmp.schema.rng.model.ParamInfoImpl
All Implemented Interfaces:
ParamInfo

public class ParamInfoImpl extends Object implements ParamInfo
This class defines a single constraint on a property value
  • Field Details

    • PARAM_ALL_TEXT

      public static final ParamInfoImpl PARAM_ALL_TEXT
      Constant ParamInfoImpl for invalid input: '<'rng:text/>
    • PARAM_ALL_INTEGER

      public static final ParamInfoImpl PARAM_ALL_INTEGER
      Constant ParamInfoImpl for invalid input: '<'rng:data type="integer"/>
    • PARAM_ALL_DOUBLE

      public static final ParamInfoImpl PARAM_ALL_DOUBLE
      Constant ParamInfoImpl for invalid input: '<'rng:data type="double"/>
    • PARAM_ALL_BOOLEAN

      public static final ParamInfoImpl PARAM_ALL_BOOLEAN
      Constant ParamInfoImpl for invalid input: '<'rng:data type="boolean"/>
  • Constructor Details

    • ParamInfoImpl

      public ParamInfoImpl(String type, Object value, String valueType, String label)
      Constructs a new ParamInfoImpl.
      Parameters:
      type - Type
      value - Value defined from RNG schema
      label - Label used
    • ParamInfoImpl

      public ParamInfoImpl(String type, Object value)
      Constructs a new ParamInfoImpl.
      Parameters:
      type - Type
      value - Value defined from RNG schema
  • Method Details

    • getType

      public com.adobe.xmp.schema.rng.parser.constants.RNGSymbol getType()
      Returns:
      the mType
    • getValue

      public Object getValue()
      Returns:
      the mValue
    • getValueType

      public String getValueType()
      Returns:
      Returns the literal type of the parameter, e.g. invalid input: '<'rng:value type="integer">1invalid input: '<'/rng:value>
    • getXMPValueType

      public String getXMPValueType()
      Returns:
      Return the XMP value type or null if there is no match.
    • getStringValue

      public String getStringValue()
      Returns:
      the mValue
    • equals

      public boolean equals(ParamInfo param)
      Specified by:
      equals in interface ParamInfo
      Parameters:
      param -
      Returns:
      Return true if param is equal to this, else false
    • getLabel

      public String getLabel()
      Returns:
      the mLabel
    • toString

      public String toString()
      Overrides:
      toString in class Object