| Access | Constructor and Description |
|---|---|
| public | XMPSchema(XMPMetadata
The parent XMP metadata that this schema will be part of. metadata, String The URI of the namespace, e.g. "http://ns.adobe.com/pdf/1.3/" namespaceURI, String The field prefix of the namespace. prefix, String The property name. name)Create a new blank schema that can be populated. |
| public | XMPSchema(XMPMetadata
The parent XMP metadata that this schema will be part of. metadata)Create a new blank schema that can be populated. |
| public | XMPSchema(XMPMetadata
The parent XMP metadata that this schema will be part of. metadata, String The field prefix of the namespace. prefix)Create a new blank schema that can be populated. |
| public | XMPSchema(XMPMetadata
The parent XMP metadata that this schema will be part of. metadata, String The URI of the namespace, e.g. "http://ns.adobe.com/pdf/1.3/" namespaceURI, String The field prefix of the namespace. prefix)Create a new blank schema that can be populated. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBagValue(String
The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords" qualifiedSeqName, AbstractField The value to add to the bag. seqValue)Add a new value to a bag property. |
| public void | addBagValueAsSimple(String
the local name of property simpleName, String the string value to add bagValue)add a bag value property on the schema, using the current prefix. |
| public void | addQualifiedBagValue(String
The name of the bag without the namespace prefix simpleName, String The value to add to the bagList. bagValue)Add an entry to a bag property. |
| public void | addSequenceDateValueAsSimple(String
the local name of the property simpleName, Calendar the value to add date)Add a date sequence value to the list using the current prefix |
| public void | addUnqualifiedSequenceDateValue(String
The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords" seqName, Calendar The date to add to the sequence property. date)Add a date sequence value to the list. |
| public void | addUnqualifiedSequenceValue(String
The name of the sequence property without the namespace prefix simpleSeqName, String The value to add to the sequence. seqValue)Add a new value to a sequence property. |
| public void | addUnqualifiedSequenceValue(String
The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords" seqName, AbstractField The value to add to the sequence. seqValue)Add a new value to a sequence property. |
| public Attribute | |
| public String | Returns: The RDF 'about' value. If there is no rdf:about attribute, an empty string is returned.Get the RDF about value. |
| public AbstractField | Returns: The generic simple type property according to its qualified nameFull qualified name of property wanted qualifiedName)Retrieve a generic simple type property |
| public BooleanType | Returns: boolean Type property or null if it doesn't exist.the full qualified name of property wanted qualifiedName)Get a BooleanType property by its name. |
| public Boolean | Returns: The value of the property as a Boolean, or null if the property does not exist.The fully qualified property name for the Boolean. qualifiedName)Get the value of the property as a Boolean. |
| public Boolean | Returns: The value of the property as a boolean or null if the property does not exist.the local name of property wanted simpleName)Get a simple boolean property value on the schema, using the current prefix. |
| public DateType | Returns: Date Type propertyThe name of the property to get, it must include the namespace prefix, e.g. "pdf:Keywords". qualifiedName)Get a Date property by its name |
| public Calendar | Returns: The value of the property as a date or null if it doesn't exist.The fully qualified property name for the date. qualifiedName)Get the value of the property as a date. |
| public Calendar | Returns: The value of the property as a calendar.the local name of the property to get simpleName)Get a simple date property value on the schema, using the current prefix. |
| public IntegerType | Returns: Integer Type property or null if it doesn't exist.the full qualified name of property wanted qualifiedName)Get the Integer property by its name |
| public Integer | Returns: The value of the property as an integer or null if it doesn't exist.The fully qualified property name for the integer. qualifiedName)Get the value of the property as an integer. |
| public Integer | Returns: The value of the property as an integer or null if it doesn't exist.the local name of property wanted simpleName)Get a simple integer property value on the schema, using the current prefix. |
| public List | Returns: List of properties contained in the array property.The property name without namespace. name)Get an AbstractField list corresponding to the content of an array property. |
| public List | Returns: All values of the bag property in a list.The bag name. bagName)Get all the values of the bag property. |
| public List | Returns: A list of all languages, this will return an non-null empty list if none have been defined, and null if the property doesn't exist.The name of the property, it must include the namespace
prefix, e.g. "pdf:Keywords". name)Get a list of all languages that are currently defined for a specific property. |
| public String | Returns: The value of the language property or null if it doesn't exist.The name of the property, without the namespace prefix. name, String The language code of the value. If null then "x-default" is assumed. expectedLanguage)Get the value of a multi-lingual property. |
| public List | Returns: A read-only list of java.util.Calendar objects or null if the property does not exist.The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords". seqName)Get all the date values in a sequence property. |
| public List | Returns: A read-only list of java.lang.String objects or null if the property does not exist.The name of the sequence property without namespace prefix. seqName)Get all the values in a sequence property. |
| public TextType | Returns: The Text Type property wanted or null if not found.The property name. name)Get a TextProperty Type by its name |
| public String | Returns: The value of the text property or null if there is no value.The property name. name)Get the value of a simple text property. |
| protected AbstractSimpleProperty | |
| private void | |
| public void | |
| private boolean | |
| private void | removeUnqualifiedArrayValue(String arrayName, String
the field value fieldValue)Generic array property removing |
| public void | removeUnqualifiedArrayValue(String
the name of the property concerned arrayName, AbstractField the elementable field value fieldValue)Generic method to remove a field from an array with an Elementable Object |
| public void | removeUnqualifiedBagValue(String
The bag name. bagName, String The value to remove from the bagList. bagValue)Remove all matching entries with the given value from the bag. |
| public void | removeUnqualifiedSequenceDateValue(String
The name of the sequence property, it must include the namespace prefix, e.g. "pdf:Keywords" seqName, Calendar The date to remove from the sequence property. date)Remove a date sequence value from the list. |
| public void | removeUnqualifiedSequenceValue(String
The name of the sequence property. It must include the namespace prefix, e.g. "pdf:Keywords". qualifiedSeqName, String The value to remove from the list. seqValue)Remove all matching values from a sequence property. |
| public void | removeUnqualifiedSequenceValue(String
The name of the sequence property. It must include the namespace prefix, e.g. "pdf:Keywords". qualifiedSeqName, AbstractField The value to remove from the list. seqValue)Remove a value from a sequence property. |
| public void | reorganizeAltOrder(ComplexPropertyContainer
The property to reorganize alt)Method used to place the 'x-default' value in first in Language alternatives as said in xmp spec |
| public void | |
| public void | |
| public void | |
| public void | setBooleanPropertyValue(String
The fully qualified property name for the boolean. qualifiedName, Boolean The boolean to set, or null to clear. bool)Set the value of the property as a boolean. |
| public void | setBooleanPropertyValueAsSimple(String
the name of the property without prefix simpleName, Boolean The value for the property, can be any string. Passing null will remove the property. bool)Set a simple Boolean property on the schema, using the current prefix. |
| public void | |
| public void | setDatePropertyValue(String
The fully qualified property name for the date. qualifiedName, Calendar The date to set, or null to clear. date)Set the value of the property as a date. |
| public void | setDatePropertyValueAsSimple(String
the name of the property without prefix simpleName, Calendar The calendar value for the property, can be any string. Passing null will remove the property. date)Set a simple Date property on the schema, using the current prefix. |
| public void | |
| public void | setIntegerPropertyValue(String
The fully qualified property name for the integer. qualifiedName, Integer The int to set, or null to clear. intValue)Set the value of the property as an integer. |
| public void | setIntegerPropertyValueAsSimple(String
the name of the property without prefix simpleName, Integer The value for the property, can be any string. Passing null will remove the property. intValue)Set a simple Integer property on the schema, using the current prefix. |
| private void | |
| private void | setSpecifiedSimpleTypeProperty(AbstractSimpleProperty
The Property to add prop)Add a SimpleProperty to this schema |
| public void | |
| public void | setTextPropertyValue(String
The name of the property, it must contain the namespace prefix, ie "pdf:Keywords" qualifiedName, String The value for the property, can be any string. Passing null will remove the property. propertyValue)Set a simple text property on the schema. |
| public void | setTextPropertyValueAsSimple(String
the name of the property without prefix simpleName, String The value for the property, can be any string. Passing null will remove the property. propertyValue)Set a simple text property on the schema, using the current prefix. |
| public void | setUnqualifiedLanguagePropertyValue(String
The name of the property, it must include the namespace prefix, e.g. "pdf:Keywords" name, String The language code of the value. If null then "x-default" is assumed. language, String The value of the property in the specified language. value)Set the value of a multi-lingual property. |
| XMPSchema | back to summary |
|---|---|
| public XMPSchema(XMPMetadata metadata, String namespaceURI, String prefix, String name) Create a new blank schema that can be populated.
| |
| XMPSchema | back to summary |
|---|---|
| public XMPSchema(XMPMetadata metadata) Create a new blank schema that can be populated.
| |
| XMPSchema | back to summary |
|---|---|
| public XMPSchema(XMPMetadata metadata, String prefix) Create a new blank schema that can be populated.
| |
| XMPSchema | back to summary |
|---|---|
| public XMPSchema(XMPMetadata metadata, String namespaceURI, String prefix) Create a new blank schema that can be populated.
| |
| addBagValue | back to summary |
|---|---|
| public void addBagValue(String qualifiedSeqName, AbstractField seqValue) Add a new value to a bag property.
| |
| addBagValueAsSimple | back to summary |
|---|---|
| public void addBagValueAsSimple(String simpleName, String bagValue) add a bag value property on the schema, using the current prefix. | |
| addQualifiedBagValue | back to summary |
|---|---|
| public void addQualifiedBagValue(String simpleName, String bagValue) Add an entry to a bag property. | |
| addSequenceDateValueAsSimple | back to summary |
|---|---|
| public void addSequenceDateValueAsSimple(String simpleName, Calendar date) Add a date sequence value to the list using the current prefix | |
| addUnqualifiedSequenceDateValue | back to summary |
|---|---|
| public void addUnqualifiedSequenceDateValue(String seqName, Calendar date) Add a date sequence value to the list. | |
| addUnqualifiedSequenceValue | back to summary |
|---|---|
| public void addUnqualifiedSequenceValue(String simpleSeqName, String seqValue) Add a new value to a sequence property. | |
| addUnqualifiedSequenceValue | back to summary |
|---|---|
| public void addUnqualifiedSequenceValue(String seqName, AbstractField seqValue) Add a new value to a sequence property.
| |
| getAboutAttribute | back to summary |
|---|---|
| public Attribute getAboutAttribute() Get the RDF about attribute
| |
| getAboutValue | back to summary |
|---|---|
| public String getAboutValue() Get the RDF about value.
| |
| getAbstractProperty | back to summary |
|---|---|
| public AbstractField getAbstractProperty(String qualifiedName) Retrieve a generic simple type property
| |
| getBooleanProperty | back to summary |
|---|---|
| public BooleanType getBooleanProperty(String qualifiedName) throws BadFieldValueException Get a BooleanType property by its name.
| |
| getBooleanPropertyValue | back to summary |
|---|---|
| public Boolean getBooleanPropertyValue(String qualifiedName) throws BadFieldValueException Get the value of the property as a Boolean. If you want to use this value like a condition, you must do a null check before.
| |
| getBooleanPropertyValueAsSimple | back to summary |
|---|---|
| public Boolean getBooleanPropertyValueAsSimple(String simpleName) throws BadFieldValueException Get a simple boolean property value on the schema, using the current prefix.
| |
| getDateProperty | back to summary |
|---|---|
| public DateType getDateProperty(String qualifiedName) throws BadFieldValueException Get a Date property by its name
| |
| getDatePropertyValue | back to summary |
|---|---|
| public Calendar getDatePropertyValue(String qualifiedName) throws BadFieldValueException Get the value of the property as a date.
| |
| getDatePropertyValueAsSimple | back to summary |
|---|---|
| public Calendar getDatePropertyValueAsSimple(String simpleName) throws BadFieldValueException Get a simple date property value on the schema, using the current prefix.
| |
| getIntegerProperty | back to summary |
|---|---|
| public IntegerType getIntegerProperty(String qualifiedName) throws BadFieldValueException Get the Integer property by its name
| |
| getIntegerPropertyValue | back to summary |
|---|---|
| public Integer getIntegerPropertyValue(String qualifiedName) throws BadFieldValueException Get the value of the property as an integer.
| |
| getIntegerPropertyValueAsSimple | back to summary |
|---|---|
| public Integer getIntegerPropertyValueAsSimple(String simpleName) throws BadFieldValueException Get a simple integer property value on the schema, using the current prefix.
| |
| getUnqualifiedArrayList | back to summary |
|---|---|
| public List Get an AbstractField list corresponding to the content of an array property.
| |
| getUnqualifiedBagValueList | back to summary |
|---|---|
| public List Get all the values of the bag property. This will return a list of java.lang.String objects, this is a read-only list. | |
| getUnqualifiedLanguagePropertyLanguagesValue | back to summary |
|---|---|
| public List Get a list of all languages that are currently defined for a specific property.
| |
| getUnqualifiedLanguagePropertyValue | back to summary |
|---|---|
| public String getUnqualifiedLanguagePropertyValue(String name, String expectedLanguage) throws BadFieldValueException Get the value of a multi-lingual property.
| |
| getUnqualifiedSequenceDateValueList | back to summary |
|---|---|
| public List Get all the date values in a sequence property. | |
| getUnqualifiedSequenceValueList | back to summary |
|---|---|
| public List Get all the values in a sequence property. | |
| getUnqualifiedTextProperty | back to summary |
|---|---|
| public TextType getUnqualifiedTextProperty(String name) throws BadFieldValueException Get a TextProperty Type by its name
| |
| getUnqualifiedTextPropertyValue | back to summary |
|---|---|
| public String getUnqualifiedTextPropertyValue(String name) throws BadFieldValueException Get the value of a simple text property.
| |
| instanciateSimple | back to summary |
|---|---|
| protected AbstractSimpleProperty instanciateSimple(String propertyName, Object value) | |
| internalAddBagValue | back to summary |
|---|---|
| private void internalAddBagValue(String qualifiedBagName, String bagValue) | |
| merge | back to summary |
|---|---|
| public void merge(XMPSchema xmpSchema) throws IOException A basic schema merge, it merges bags and sequences and replace everything else.
| |
| mergeComplexProperty | back to summary |
|---|---|
| private boolean mergeComplexProperty(Iterator<AbstractField> itNewValues, ArrayProperty arrayProperty) | |
| removeUnqualifiedArrayValue | back to summary |
|---|---|
| private void removeUnqualifiedArrayValue(String arrayName, String fieldValue) Generic array property removing
| |
| removeUnqualifiedArrayValue | back to summary |
|---|---|
| public void removeUnqualifiedArrayValue(String arrayName, AbstractField fieldValue) Generic method to remove a field from an array with an Elementable Object
| |
| removeUnqualifiedBagValue | back to summary |
|---|---|
| public void removeUnqualifiedBagValue(String bagName, String bagValue) Remove all matching entries with the given value from the bag. | |
| removeUnqualifiedSequenceDateValue | back to summary |
|---|---|
| public void removeUnqualifiedSequenceDateValue(String seqName, Calendar date) Remove a date sequence value from the list. | |
| removeUnqualifiedSequenceValue | back to summary |
|---|---|
| public void removeUnqualifiedSequenceValue(String qualifiedSeqName, String seqValue) Remove all matching values from a sequence property. | |
| removeUnqualifiedSequenceValue | back to summary |
|---|---|
| public void removeUnqualifiedSequenceValue(String qualifiedSeqName, AbstractField seqValue) Remove a value from a sequence property. This will remove all entries from the list.
| |
| reorganizeAltOrder | back to summary |
|---|---|
| public void reorganizeAltOrder(ComplexPropertyContainer alt) Method used to place the 'x-default' value in first in Language alternatives as said in xmp spec
| |
| setAbout | back to summary |
|---|---|
| public void setAbout(Attribute about) throws BadFieldValueException Set the RDF 'about' attribute
| |
| setAboutAsSimple | back to summary |
|---|---|
| public void setAboutAsSimple(String about) Set the RDF 'about' attribute. Passing in null will clear this attribute.
| |
| setBooleanProperty | back to summary |
|---|---|
| public void setBooleanProperty(BooleanType bool) Set a BooleanType property
| |
| setBooleanPropertyValue | back to summary |
|---|---|
| public void setBooleanPropertyValue(String qualifiedName, Boolean bool) Set the value of the property as a boolean. | |
| setBooleanPropertyValueAsSimple | back to summary |
|---|---|
| public void setBooleanPropertyValueAsSimple(String simpleName, Boolean bool) Set a simple Boolean property on the schema, using the current prefix. | |
| setDateProperty | back to summary |
|---|---|
| public void setDateProperty(DateType date) Set a new DateProperty
| |
| setDatePropertyValue | back to summary |
|---|---|
| public void setDatePropertyValue(String qualifiedName, Calendar date) Set the value of the property as a date. | |
| setDatePropertyValueAsSimple | back to summary |
|---|---|
| public void setDatePropertyValueAsSimple(String simpleName, Calendar date) Set a simple Date property on the schema, using the current prefix. | |
| setIntegerProperty | back to summary |
|---|---|
| public void setIntegerProperty(IntegerType prop) Add an integerProperty
| |
| setIntegerPropertyValue | back to summary |
|---|---|
| public void setIntegerPropertyValue(String qualifiedName, Integer intValue) Set the value of the property as an integer. | |
| setIntegerPropertyValueAsSimple | back to summary |
|---|---|
| public void setIntegerPropertyValueAsSimple(String simpleName, Integer intValue) Set a simple Integer property on the schema, using the current prefix. | |
| setSpecifiedSimpleTypeProperty | back to summary |
|---|---|
| private void setSpecifiedSimpleTypeProperty(Types type, String qualifiedName, Object propertyValue) | |
| setSpecifiedSimpleTypeProperty | back to summary |
|---|---|
| private void setSpecifiedSimpleTypeProperty(AbstractSimpleProperty prop) Add a SimpleProperty to this schema
| |
| setTextProperty | back to summary |
|---|---|
| public void setTextProperty(TextType prop) Set TextType property
| |
| setTextPropertyValue | back to summary |
|---|---|
| public void setTextPropertyValue(String qualifiedName, String propertyValue) Set a simple text property on the schema. | |
| setTextPropertyValueAsSimple | back to summary |
|---|---|
| public void setTextPropertyValueAsSimple(String simpleName, String propertyValue) Set a simple text property on the schema, using the current prefix. | |
| setUnqualifiedLanguagePropertyValue | back to summary |
|---|---|
| public void setUnqualifiedLanguagePropertyValue(String name, String language, String value) Set the value of a multi-lingual property. | |