org.xpcards.model
Class TypedCollection

java.lang.Object
  extended byorg.xpcards.model.ModelElement
      extended byorg.xpcards.model.Collection
          extended byorg.xpcards.model.TypedCollection
All Implemented Interfaces:
IConstraint, IIdentifiedInstance, java.io.Serializable
Direct Known Subclasses:
ModelElementCollection

public class TypedCollection
extends Collection
implements IConstraint

Model Elements Collection to track Model Elements by ID

Author:
galu02
See Also:
Serialized Form

Constructor Summary
TypedCollection()
           
 
Method Summary
 java.lang.Class getType()
           
 boolean isAcceptable(java.lang.Object o)
           
 boolean isAcceptableType(java.lang.Class o)
           
 void putElement(IIdentifiedInstance element)
           
 void setType(java.lang.Class type)
           
 
Methods inherited from class org.xpcards.model.Collection
containsKey, containsValue, createUniqueIndex, elements, removeElement, size, toArray, toArray
 
Methods inherited from class org.xpcards.model.ModelElement
addModelElementListener, equals, getChildren, getCreated, getCreatedBy, getDescription, getId, getName, getParent, isCommited, propagateCommitedForParents, removeModelElementListener, setCommited, setCommitedForSelfAndAncestors, setCommitedForSelfAndChildren, setCommitedForSelfAndDescendants, setCreated, setCreatedBy, setDescription, setId, setName, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedCollection

public TypedCollection()
Method Detail

getType

public java.lang.Class getType()

setType

public void setType(java.lang.Class type)

putElement

public void putElement(IIdentifiedInstance element)
Overrides:
putElement in class Collection
See Also:
Collection.putElement(org.xpcards.model.IIdentifiedInstance)

isAcceptable

public boolean isAcceptable(java.lang.Object o)
Specified by:
isAcceptable in interface IConstraint

isAcceptableType

public boolean isAcceptableType(java.lang.Class o)


Copyright © 2004 Mikhail Galyutin. All Rights Reserved.