public class ComplexPropertyContainer extends Object
Constructor and Description |
---|
ComplexPropertyContainer()
Complex Property type constructor (namespaceURI is given)
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(AbstractField obj)
Add a property to the current structure
|
boolean |
containsProperty(AbstractField property)
Check if a XMPFieldObject is in the complex property
|
List<AbstractField> |
getAllProperties()
Return all children associated to this property
|
protected AbstractField |
getFirstEquivalentProperty(String localName,
Class<? extends AbstractField> type)
Give the first property found in this container with type and localname expected
|
List<AbstractField> |
getPropertiesByLocalName(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
|
public ComplexPropertyContainer()
protected AbstractField getFirstEquivalentProperty(String localName, Class<? extends AbstractField> type)
localName
- the localname of property wantedtype
- the property type of property wantedpublic void addProperty(AbstractField obj)
obj
- the property to addpublic List<AbstractField> getAllProperties()
public List<AbstractField> getPropertiesByLocalName(String localName)
localName
- the local name wantedpublic boolean isSameProperty(AbstractField prop1, AbstractField prop2)
prop1
- First propertyprop2
- Second propertypublic boolean containsProperty(AbstractField property)
property
- The property to checkpublic void removeProperty(AbstractField property)
property
- The property to removepublic void removePropertiesByName(String localName)
localName
- The name for which to remove all.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.