Package org.apache.xmpbox.type
Class ComplexPropertyContainer
java.lang.Object
org.apache.xmpbox.type.ComplexPropertyContainer
Object representation for arrays content This Class could be used to define directly a property with more than one
field (structure) and also schemas
- Author:
- a183132
-
Constructor Summary
ConstructorsConstructorDescriptionComplex Property type constructor (namespaceURI is given) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(AbstractField obj) Add a property to the current structureboolean
containsProperty
(AbstractField property) Check if a XMPFieldObject is in the complex propertyReturn all children associated to this propertyprotected AbstractField
getFirstEquivalentProperty
(String localName, Class<? extends AbstractField> type) Give the first property found in this container with type and localname expectedgetPropertiesByLocalName
(String localName) Return all properties with this specified localName.boolean
isSameProperty
(AbstractField prop1, AbstractField prop2) Check if two properties are equal.void
removePropertiesByName
(String localName) Remove all properties with a specified LocalName.void
removeProperty
(AbstractField property) Remove a property
-
Constructor Details
-
ComplexPropertyContainer
public ComplexPropertyContainer()Complex Property type constructor (namespaceURI is given)
-
-
Method Details
-
getFirstEquivalentProperty
protected AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type) Give the first property found in this container with type and localname expected- Parameters:
localName
- the localname of property wantedtype
- the property type of property wanted- Returns:
- the property wanted
-
addProperty
Add a property to the current structure- Parameters:
obj
- the property to add
-
getAllProperties
Return all children associated to this property- Returns:
- All Properties contained in this container
-
getPropertiesByLocalName
Return all properties with this specified localName.- Parameters:
localName
- the local name wanted- Returns:
- All properties with local name which match with localName given, or null if there are none.
-
isSameProperty
Check if two properties are equal.- Parameters:
prop1
- First propertyprop2
- Second property- Returns:
- True if these properties are equal.
-
containsProperty
Check if a XMPFieldObject is in the complex property- Parameters:
property
- The property to check- Returns:
- True if property is present in this container
-
removeProperty
Remove a property- Parameters:
property
- The property to remove
-
removePropertiesByName
Remove all properties with a specified LocalName.- Parameters:
localName
- The name for which to remove all.
-