org.pfsw.odem
Interface IContainer

All Superinterfaces:
IExplorableElement, IExplorableElementVisiting, IExplorationModelObject, IObjectProperties, IStructureVisiting

public interface IContainer
extends IExplorableElement, IStructureVisiting

Represents a containers that hold types and namespaces.

Version:
1.0
Author:
M.Duchrow

Field Summary
static IContainer[] EMPTY_CONTAINER_ARRAY
          An empty array of IContainer elements that can be used as return value in implementations whenever an empty array is needed.
 
Method Summary
 ContainerClassification getClassification()
          Returns the classification of this container.
 java.util.Collection<INamespace> getNamespaces()
          Returns all namespaces in this container.
 IContainer getParentContainer()
          Returns the parent container of this container.
 java.util.Collection<IContainer> getSubContainers()
          Returns all sub containers of this container.
 
Methods inherited from interface org.pfsw.odem.IExplorableElement
getContext
 
Methods inherited from interface org.pfsw.odem.IExplorationModelObject
getName
 
Methods inherited from interface org.pfsw.odem.IObjectProperties
getProperty, getPropertyNames, setProperty
 
Methods inherited from interface org.pfsw.odem.IExplorableElementVisiting
accept, acceptTypes
 
Methods inherited from interface org.pfsw.odem.IStructureVisiting
acceptContainers, acceptNamespaces
 
Methods inherited from interface org.pfsw.odem.IExplorableElementVisiting
accept, acceptTypes
 

Field Detail

EMPTY_CONTAINER_ARRAY

static final IContainer[] EMPTY_CONTAINER_ARRAY
An empty array of IContainer elements that can be used as return value in implementations whenever an empty array is needed.

Method Detail

getParentContainer

IContainer getParentContainer()
Returns the parent container of this container. If this method returns null this is a top-level container.


getSubContainers

java.util.Collection<IContainer> getSubContainers()
Returns all sub containers of this container. Theis method never returns null. If this container has no sub containers an empty collection will be returned. The result collection is always a copy. That means, manipulating the collection does not affect the internal state/structure of this container,


getNamespaces

java.util.Collection<INamespace> getNamespaces()
Returns all namespaces in this container. This method never returns null. If no namespace is contained in the container an empty collection will be returned.


getClassification

ContainerClassification getClassification()
Returns the classification of this container.