Class DateType

    • Field Detail

      • dateValue

        private java.util.Calendar dateValue
    • Constructor Detail

      • DateType

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

      • setValueFromCalendar

        private void setValueFromCalendar​(java.util.Calendar value)
        Set property value
        Parameters:
        value - the new Calendar element value
      • isGoodType

        private boolean isGoodType​(java.lang.Object value)
        Check if the value has a type which can be understood
        Parameters:
        value - Object value to check
        Returns:
        True if types are compatibles
      • setValue

        public void setValue​(java.lang.Object value)
        Set value of this property
        Specified by:
        setValue in class AbstractSimpleProperty
        Parameters:
        value - The value to set
      • setValueFromString

        private void setValueFromString​(java.lang.String value)
        Set the property value with a String
        Parameters:
        value - The String value