org.cumt.model
Class PackageObject
java.lang.Object
org.cumt.model.IdentifiedObject
org.cumt.model.PropertyAwareObject
org.cumt.model.BaseModelNode
org.cumt.model.ModelObject
org.cumt.model.RelationableModelObject
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
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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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
PackageObject
public PackageObject()
PackageObject
public PackageObject(java.lang.String name)
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.