Package org.apache.xmpbox.type
Class BooleanType
- java.lang.Object
-
- org.apache.xmpbox.type.AbstractField
-
- org.apache.xmpbox.type.AbstractSimpleProperty
-
- org.apache.xmpbox.type.BooleanType
-
public class BooleanType extends AbstractSimpleProperty
Object representation of an Boolean XMP type
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
booleanValue
static java.lang.String
FALSE
static java.lang.String
TRUE
-
Constructor Summary
Constructors Constructor Description BooleanType(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
Property Boolean type constructor (namespaceURI is given)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getStringValue()
Return the property valuejava.lang.Boolean
getValue()
return the property valuevoid
setValue(java.lang.Object value)
Set value of this property BooleanTypeObject accept String value or a boolean-
Methods 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 Detail
-
TRUE
public static final java.lang.String TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE
- See Also:
- Constant Field Values
-
booleanValue
private boolean booleanValue
-
-
Constructor Detail
-
BooleanType
public BooleanType(XMPMetadata metadata, java.lang.String namespaceURI, java.lang.String prefix, java.lang.String propertyName, java.lang.Object value)
Property Boolean 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 give
-
-
Method Detail
-
getValue
public java.lang.Boolean getValue()
return the property value- Specified by:
getValue
in classAbstractSimpleProperty
- Returns:
- boolean the property value
-
setValue
public void setValue(java.lang.Object value)
Set value of this property BooleanTypeObject accept String value or a boolean- Specified by:
setValue
in classAbstractSimpleProperty
- Parameters:
value
- The value to set
-
getStringValue
public java.lang.String getStringValue()
Description copied from class:AbstractSimpleProperty
Return the property value- Specified by:
getStringValue
in classAbstractSimpleProperty
- Returns:
- a string
-
-