public class DateType extends AbstractSimpleProperty
Modifier and Type | Field and Description |
---|---|
private java.util.Calendar |
dateValue |
Constructor and Description |
---|
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)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStringValue()
Return the property value
|
java.util.Calendar |
getValue()
return the property value
|
private boolean |
isGoodType(java.lang.Object value)
Check if the value has a type which can be understood
|
void |
setValue(java.lang.Object value)
Set value of this property
|
private void |
setValueFromCalendar(java.util.Calendar value)
Set property value
|
private void |
setValueFromString(java.lang.String value)
Set the property value with a String
|
getNamespace, getPrefix, getRawValue, toString
containsAttribute, getAllAttributes, getAttribute, getMetadata, getPropertyName, removeAttribute, setAttribute, setPropertyName
public DateType(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
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 propertyprivate void setValueFromCalendar(java.util.Calendar value)
value
- the new Calendar element valuepublic java.util.Calendar getValue()
getValue
in class AbstractSimpleProperty
private boolean isGoodType(java.lang.Object value)
value
- Object value to checkpublic void setValue(java.lang.Object value)
setValue
in class AbstractSimpleProperty
value
- The value to setpublic java.lang.String getStringValue()
AbstractSimpleProperty
getStringValue
in class AbstractSimpleProperty
private void setValueFromString(java.lang.String value)
value
- The String value