Package org.apache.xmpbox.type
Class DateType
java.lang.Object
org.apache.xmpbox.type.AbstractField
org.apache.xmpbox.type.AbstractSimpleProperty
org.apache.xmpbox.type.DateType
Object representation of a Date XMP type
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the property valuegetValue()
return the property valueprivate boolean
isGoodType
(Object value) Check if the value has a type which can be understoodvoid
Set value of this propertyprivate void
setValueFromCalendar
(Calendar value) Set property valueprivate void
setValueFromString
(String value) Set the property value with a StringMethods inherited from class org.apache.xmpbox.type.AbstractSimpleProperty
getNamespace, getPrefix, getRawValue, toString
Methods inherited from class org.apache.xmpbox.type.AbstractField
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
-
Field Details
-
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 propertynamespaceURI
- the namespace URI to associate to this propertyprefix
- The prefix to set for this propertypropertyName
- The local Name of this propertyvalue
- The value to set for this property
-
-
Method Details
-
setValueFromCalendar
Set property value- Parameters:
value
- the new Calendar element value
-
getValue
return the property value- Specified by:
getValue
in classAbstractSimpleProperty
- Returns:
- boolean
-
isGoodType
Check if the value has a type which can be understood- Parameters:
value
- Object value to check- Returns:
- True if types are compatibles
-
setValue
Set value of this property- Specified by:
setValue
in classAbstractSimpleProperty
- Parameters:
value
- The value to set
-
getStringValue
Description copied from class:AbstractSimpleProperty
Return the property value- Specified by:
getStringValue
in classAbstractSimpleProperty
- Returns:
- a string
-
setValueFromString
Set the property value with a String- Parameters:
value
- The String value
-