Package org.deckfour.xes.model.impl
Class XAttributeCollectionImpl
- java.lang.Object
-
- org.deckfour.xes.model.impl.XAttributeImpl
-
- org.deckfour.xes.model.impl.XAttributeLiteralImpl
-
- org.deckfour.xes.model.impl.XAttributeCollectionImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<XAttribute>,XAttributable,XAttribute,XAttributeCollection,XAttributeLiteral
- Direct Known Subclasses:
XAttributeContainerImpl,XAttributeListImpl
public abstract class XAttributeCollectionImpl extends XAttributeLiteralImpl implements XAttributeCollection
- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<XAttribute>collection
-
Constructor Summary
Constructors Constructor Description XAttributeCollectionImpl(java.lang.String key)XAttributeCollectionImpl(java.lang.String key, XExtension extension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToCollection(XAttribute attribute)java.lang.Objectclone()Attributes must be cloneable.java.util.Collection<XAttribute>getCollection()voidremoveFromCollection(XAttribute attribute)java.lang.StringtoString()String representation of the value.-
Methods inherited from class org.deckfour.xes.model.impl.XAttributeLiteralImpl
compareTo, equals, getValue, hashCode, setValue
-
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
accept, getAttributes, getExtension, getExtensions, getKey, hasAttributes, setAttributes
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
-
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, getExtension, getKey
-
-
-
-
Field Detail
-
collection
protected java.util.Collection<XAttribute> collection
-
-
Constructor Detail
-
XAttributeCollectionImpl
public XAttributeCollectionImpl(java.lang.String key)
- Parameters:
key-
-
XAttributeCollectionImpl
public XAttributeCollectionImpl(java.lang.String key, XExtension extension)- Parameters:
key-extension-
-
-
Method Detail
-
addToCollection
public void addToCollection(XAttribute attribute)
- Specified by:
addToCollectionin interfaceXAttributeCollection
-
removeFromCollection
public void removeFromCollection(XAttribute attribute)
-
getCollection
public java.util.Collection<XAttribute> getCollection()
- Specified by:
getCollectionin interfaceXAttributeCollection
-
toString
public java.lang.String toString()
Description copied from interface:XAttributeString representation of the value.- Specified by:
toStringin interfaceXAttribute- Overrides:
toStringin classXAttributeLiteralImpl- Returns:
- Returns the String representation of the value.
-
clone
public java.lang.Object clone()
Description copied from interface:XAttributeAttributes must be cloneable.- Specified by:
clonein interfaceXAttribute- Overrides:
clonein classXAttributeLiteralImpl- Returns:
- A clone of this attribute.
-
-