Class DateType


public class DateType extends AbstractSimpleProperty
Object representation of a Date XMP type
  • Field Details

    • dateValue

      private Calendar dateValue
  • Constructor Details

    • DateType

      public DateType(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, 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 Details

    • setValueFromCalendar

      private void setValueFromCalendar(Calendar value)
      Set property value
      Parameters:
      value - the new Calendar element value
    • getValue

      public Calendar getValue()
      return the property value
      Specified by:
      getValue in class AbstractSimpleProperty
      Returns:
      boolean
    • isGoodType

      private boolean isGoodType(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(Object value)
      Set value of this property
      Specified by:
      setValue in class AbstractSimpleProperty
      Parameters:
      value - The value to set
    • getStringValue

      public String getStringValue()
      Description copied from class: AbstractSimpleProperty
      Return the property value
      Specified by:
      getStringValue in class AbstractSimpleProperty
      Returns:
      a string
    • setValueFromString

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