org.cumt.model
Class PackageObject

java.lang.Object
  extended by org.cumt.model.IdentifiedObject
      extended by org.cumt.model.PropertyAwareObject
          extended by org.cumt.model.BaseModelNode
              extended by org.cumt.model.ModelObject
                  extended by org.cumt.model.RelationableModelObject
                      extended by org.cumt.model.PackageObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Container<BaseModelNode>

public class PackageObject
extends RelationableModelObject
implements Container<BaseModelNode>

Represents a package

Author:
Carlos Descalzi
See Also:
Serialized Form

Field Summary
static java.lang.String CONTENTS_HIDDEN
           
static java.lang.String CUSTOM_ICON
           
static java.lang.String ROOT_PACKAGE
           
 
Fields inherited from class org.cumt.model.ModelObject
STEREOTYPE
 
Fields inherited from class org.cumt.model.BaseModelNode
ATTRIBUTES, DESCRIPTION, IGNORED_ON_GENERATION, NAME
 
Constructor Summary
PackageObject()
           
PackageObject(java.lang.String name)
           
 
Method Summary
 void add(BaseModelNode node)
          Adds a new node
 void addContainerListener(ContainerListener listener)
           
 java.lang.Object clone()
           
 java.util.List<BaseModelNode> getContents()
          Returns all the children
 ModelIcon getCustomIcon()
           
 boolean isContentHidden()
           
 boolean isRootPackage()
           
 void remove(BaseModelNode node)
          Removes a node
 void removeContainerListener(ContainerListener listener)
           
 void setContentHidden(boolean contentHidden)
           
 void setCustomIcon(ModelIcon customIcon)
           
 void setRootPackage(boolean rootPackage)
           
 
Methods inherited from class org.cumt.model.RelationableModelObject
addRelation, containsRelation, getRelations, isRelationAllowed, removeRelation
 
Methods inherited from class org.cumt.model.ModelObject
getStereotype, setStereotype
 
Methods inherited from class org.cumt.model.BaseModelNode
getAttribute, getAttributeNames, getAttributes, getCreationDate, getDefaultName, getDescription, getName, getParent, isIgnoredOnGeneration, removeAttribute, setAttribute, setAttributes, setDescription, setIgnoredOnGeneration, setName, setParent, toString
 
Methods inherited from class org.cumt.model.PropertyAwareObject
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.cumt.model.IdentifiedObject
equals, getId, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ROOT_PACKAGE

public static final java.lang.String ROOT_PACKAGE
See Also:
Constant Field Values

CONTENTS_HIDDEN

public static final java.lang.String CONTENTS_HIDDEN
See Also:
Constant Field Values

CUSTOM_ICON

public static final java.lang.String CUSTOM_ICON
See Also:
Constant Field Values
Constructor Detail

PackageObject

public PackageObject()

PackageObject

public PackageObject(java.lang.String name)
Method Detail

getContents

public java.util.List<BaseModelNode> getContents()
Description copied from interface: Container
Returns all the children

Specified by:
getContents in interface Container<BaseModelNode>
Returns:
See Also:
contents

add

public void add(BaseModelNode node)
Description copied from interface: Container
Adds a new node

Specified by:
add in interface Container<BaseModelNode>

remove

public void remove(BaseModelNode node)
Description copied from interface: Container
Removes a node

Specified by:
remove in interface Container<BaseModelNode>

isRootPackage

public boolean isRootPackage()
See Also:
rootPackage

setRootPackage

public void setRootPackage(boolean rootPackage)
See Also:
rootPackage

getCustomIcon

public ModelIcon getCustomIcon()
See Also:
customIcon

setCustomIcon

public void setCustomIcon(ModelIcon customIcon)
See Also:
customIcon

isContentHidden

public boolean isContentHidden()
See Also:
contentHidden

setContentHidden

public void setContentHidden(boolean contentHidden)
See Also:
contentHidden

addContainerListener

public void addContainerListener(ContainerListener listener)
Specified by:
addContainerListener in interface Container<BaseModelNode>

removeContainerListener

public void removeContainerListener(ContainerListener listener)
Specified by:
removeContainerListener in interface Container<BaseModelNode>

clone

public java.lang.Object clone()
Overrides:
clone in class ModelObject


Copyright © 2006 null. All Rights Reserved.