org.deckfour.xes.model.impl
Class XAttributeCollectionImpl

java.lang.Object
  extended by org.deckfour.xes.model.impl.XAttributeImpl
      extended by org.deckfour.xes.model.impl.XAttributeLiteralImpl
          extended by org.deckfour.xes.model.impl.XAttributeCollectionImpl
All Implemented Interfaces:
Cloneable, 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)

Field Summary
protected  Collection<XAttribute> collection
           
 
Constructor Summary
XAttributeCollectionImpl(String key)
           
XAttributeCollectionImpl(String key, XExtension extension)
           
 
Method Summary
 void addToCollection(XAttribute attribute)
           
 Collection<XAttribute> getCollection()
           
 String toString()
           
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeLiteralImpl
clone, compareTo, equals, getValue, setValue
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
accept, getAttributes, getExtension, getExtensions, getKey, hasAttributes, hashCode, setAttributes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, clone, getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

collection

protected Collection<XAttribute> collection
Constructor Detail

XAttributeCollectionImpl

public XAttributeCollectionImpl(String key)
Parameters:
key -

XAttributeCollectionImpl

public XAttributeCollectionImpl(String key,
                                XExtension extension)
Parameters:
key -
extension -
Method Detail

addToCollection

public void addToCollection(XAttribute attribute)
Specified by:
addToCollection in interface XAttributeCollection

getCollection

public Collection<XAttribute> getCollection()
Specified by:
getCollection in interface XAttributeCollection

toString

public String toString()
Overrides:
toString in class XAttributeLiteralImpl