org.pfsw.odem
Interface INamespace

All Superinterfaces:
IExplorableElement, IExplorableElementVisiting, IExplorationModelObject, IObjectProperties

public interface INamespace
extends IExplorableElement

Represents a namespace an IType belongs to. That is, a Java package for example.

Version:
1.0
Author:
M.Duchrow

Field Summary
static INamespace[] EMPTY_NAMESPACE_ARRAY
          An empty array of INamespace elements that can be used as return value in implementations whenever an empty array is needed.
 
Method Summary
 boolean acceptNamespaces(INamespacesVisitor visitor)
          Implementation of the visitor pattern (GOF).
 java.util.Collection<IType> getTypes()
          Returns all types in this namespace.
 
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
 

Field Detail

EMPTY_NAMESPACE_ARRAY

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

Method Detail

getTypes

java.util.Collection<IType> getTypes()
Returns all types in this namespace. This method never returns null. If no type is contained in the namespace an empty collection will be returned.


acceptNamespaces

boolean acceptNamespaces(INamespacesVisitor visitor)
Implementation of the visitor pattern (GOF). It iterates (recursivly) over all contained INamespace objects and invokes the visitor's callback method using the namespaces as parameter.

Parameters:
visitor - The implementor of the vistor interface to be called by this method
Returns:
true if processing should be continued, otherwise false