Class AbstractSimpleProperty

    • Field Detail

      • namespace

        private final java.lang.String namespace
      • prefix

        private final java.lang.String prefix
      • rawValue

        private final java.lang.Object rawValue
    • Constructor Detail

      • AbstractSimpleProperty

        public AbstractSimpleProperty​(XMPMetadata metadata,
                                      java.lang.String namespaceURI,
                                      java.lang.String prefix,
                                      java.lang.String propertyName,
                                      java.lang.Object value)
        Property specific type constructor (namespaceURI is given)
        Parameters:
        metadata - The metadata to attach to this property
        namespaceURI - the specified namespace URI associated to this property
        prefix - The prefix to set for this property
        propertyName - The local Name of this property
        value - the value to give
    • Method Detail

      • setValue

        public abstract void setValue​(java.lang.Object value)
        Check and set new property value (in Element and in its Object Representation)
        Parameters:
        value - Object value to set
      • getStringValue

        public abstract java.lang.String getStringValue()
        Return the property value
        Returns:
        a string
      • getValue

        public abstract java.lang.Object getValue()
      • getRawValue

        public java.lang.Object getRawValue()
        Return the properties raw value.

        The properties raw value is how it has been serialized into the XML. Allows to retrieve the low level date for validation purposes.

        Returns:
        the raw value.
      • toString

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

        public final java.lang.String getNamespace()
        Get the namespace URI of this entity
        Specified by:
        getNamespace in class AbstractField
        Returns:
        the namespace URI
      • getPrefix

        public java.lang.String getPrefix()
        Get the prefix of this entity
        Specified by:
        getPrefix in class AbstractField
        Returns:
        the prefix specified