Class ParamInfoImpl

  • All Implemented Interfaces:
    ParamInfo

    public class ParamInfoImpl
    extends java.lang.Object
    implements ParamInfo
    This class defines a single constraint on a property value
    • Field Detail

      • PARAM_ALL_TEXT

        public static final ParamInfoImpl PARAM_ALL_TEXT
        Constant ParamInfoImpl for
      • PARAM_ALL_INTEGER

        public static final ParamInfoImpl PARAM_ALL_INTEGER
        Constant ParamInfoImpl for
      • PARAM_ALL_DOUBLE

        public static final ParamInfoImpl PARAM_ALL_DOUBLE
        Constant ParamInfoImpl for
      • PARAM_ALL_BOOLEAN

        public static final ParamInfoImpl PARAM_ALL_BOOLEAN
        Constant ParamInfoImpl for
    • Constructor Detail

      • ParamInfoImpl

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

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

      • getType

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

        public java.lang.Object getValue()
        Returns:
        the mValue
      • getValueType

        public java.lang.String getValueType()
        Returns:
        Returns the literal type of the parameter, e.g. 1
      • getXMPValueType

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

        public java.lang.String getStringValue()
        Returns:
        the mValue
      • equals

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

        public java.lang.String getLabel()
        Returns:
        the mLabel
      • toString

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