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- Author:
- a183132
-
-
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.StringgetStringValue()Return the property valuejava.lang.BooleangetValue()return the property valuevoidsetValue(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
-
-
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:
getValuein 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:
setValuein classAbstractSimpleProperty- Parameters:
value- The value to set
-
getStringValue
public java.lang.String getStringValue()
Description copied from class:AbstractSimplePropertyReturn the property value- Specified by:
getStringValuein classAbstractSimpleProperty- Returns:
- a string
-
-