Top Description Fields Constructors Methods
org.apache.xmpbox.type

public Class DateType

extends AbstractSimpleProperty
Class Inheritance
Imports
java.io.IOException, java.util.Calendar, org.apache.xmpbox.DateConverter, .XMPMetadata

Object representation of a Date XMP type
Author
a183132

Field Summary

Modifier and TypeField and Description
private Calendar

Constructor Summary

AccessConstructor and Description
public
DateType(XMPMetadata
The metadata to attach to this property
metadata
,
String
the namespace URI to associate to this property
namespaceURI
,
String
The prefix to set for this property
prefix
,
String
The local Name of this property
propertyName
,
Object
The value to set for this property
value
)

Property Date type constructor (namespaceURI is given)

Method Summary

Modifier and TypeMethod and Description
public String
getStringValue()

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.getStringValue.

Return the property value

public Calendar

Returns:

boolean
getValue
()

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.getValue.

return the property value

private boolean

Returns:

True if types are compatibles
isGoodType
(Object
Object value to check
value
)

Check if the value has a type which can be understood

public void
setValue(Object
The value to set
value
)

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.setValue.

Set value of this property

private void
setValueFromCalendar(Calendar
the new Calendar element value
value
)

Set property value

private void
setValueFromString(String
The String value
value
)

Set the property value with a String

Inherited from org.apache.xmpbox.type.AbstractSimpleProperty:
getNamespacegetPrefixgetRawValuetoString

Field Detail

dateValueback to summary
private Calendar dateValue

Constructor Detail

DateTypeback to summary
public DateType(XMPMetadata metadata, String namespaceURI, String prefix, String propertyName, Object value)

Property Date type constructor (namespaceURI is given)

Parameters
metadata:XMPMetadata

The metadata to attach to this property

namespaceURI:String

the namespace URI to associate to this property

prefix:String

The prefix to set for this property

propertyName:String

The local Name of this property

value:Object

The value to set for this property

Method Detail

getStringValueback to summary
public String getStringValue()

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.getStringValue.

Doc from org.apache.xmpbox.type.AbstractSimpleProperty.getStringValue.

Return the property value

Returns:String

a string

Annotations
@Override
getValueback to summary
public Calendar getValue()

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.getValue.

return the property value

Returns:Calendar

boolean

Annotations
@Override
isGoodTypeback to summary
private boolean isGoodType(Object value)

Check if the value has a type which can be understood

Parameters
value:Object

Object value to check

Returns:boolean

True if types are compatibles

setValueback to summary
public void setValue(Object value)

Implements abstract org.apache.xmpbox.type.AbstractSimpleProperty.setValue.

Set value of this property

Parameters
value:Object

The value to set

Annotations
@Override
setValueFromCalendarback to summary
private void setValueFromCalendar(Calendar value)

Set property value

Parameters
value:Calendar

the new Calendar element value

setValueFromStringback to summary
private void setValueFromString(String value)

Set the property value with a String

Parameters
value:String

The String value