public class ComplexPropertyContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<AbstractField> |
properties |
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
|
java.util.List<AbstractField> |
getAllProperties()
Return all children associated to this property
|
protected AbstractField |
getFirstEquivalentProperty(java.lang.String localName,
java.lang.Class<? extends AbstractField> type)
Give the first property found in this container with type and localname expected
|
java.util.List<AbstractField> |
getPropertiesByLocalName(java.lang.String localName)
Return all properties with this specified localName.
|
boolean |
isSameProperty(AbstractField prop1,
AbstractField prop2)
Check if two properties are equal.
|
void |
removePropertiesByName(java.lang.String localName)
Remove all properties with a specified LocalName.
|
void |
removeProperty(AbstractField property)
Remove a property
|
private final java.util.List<AbstractField> properties
public ComplexPropertyContainer()
protected AbstractField getFirstEquivalentProperty(java.lang.String localName, java.lang.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 java.util.List<AbstractField> getAllProperties()
public java.util.List<AbstractField> getPropertiesByLocalName(java.lang.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(java.lang.String localName)
localName
- The name for which to remove all.