org.pfsw.tools.cda.darc
Class ModelElementIdentifier

java.lang.Object
  extended by org.pfsw.tools.cda.darc.ModelElementIdentifier

public class ModelElementIdentifier
extends java.lang.Object

Identifies a model element of CDA.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
ModelElementIdentifier()
          Initialize the new instance with default values.
ModelElementIdentifier(IParameterMap data)
          Initialize the new instance with values from the given map.
 
Method Summary
 IParameterMap asParameterMap()
          Returns a parameter map that has the attributes set from this model element identifier.
 java.lang.String getClassName()
          Returns the name of the class or null if not available.
 java.lang.String getContainerName()
          Returns the name of the container or null if not available.
 java.lang.String getPackageName()
          Returns the name of the package or null if not available.
 java.lang.String getWorksetName()
          Returns the name of the workset or null if not available.
 boolean isClass()
          Returns true if this instance represents a class.
 boolean isContainer()
          Returns true if this instance represents a container.
 boolean isNull()
          Returns true if this instance represents a null object.
 boolean isPackage()
          Returns true if this instance represents a package.
 boolean isWorkset()
          Returns true if this instance represents a workset.
 void setClassName(java.lang.String className)
          Sets the class name.
 void setContainerName(java.lang.String containerName)
          Sets the container name.
 void setPackageName(java.lang.String packageName)
          Sets the package name.
 void setWorksetName(java.lang.String worksetName)
          Sets the workset name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelElementIdentifier

public ModelElementIdentifier()
Initialize the new instance with default values.


ModelElementIdentifier

public ModelElementIdentifier(IParameterMap data)
Initialize the new instance with values from the given map.

Method Detail

getWorksetName

public java.lang.String getWorksetName()
Returns the name of the workset or null if not available.


getContainerName

public java.lang.String getContainerName()
Returns the name of the container or null if not available.


getPackageName

public java.lang.String getPackageName()
Returns the name of the package or null if not available.


getClassName

public java.lang.String getClassName()
Returns the name of the class or null if not available.


isNull

public boolean isNull()
Returns true if this instance represents a null object. That is, no workset names is available.


isWorkset

public boolean isWorkset()
Returns true if this instance represents a workset.


isContainer

public boolean isContainer()
Returns true if this instance represents a container.


isPackage

public boolean isPackage()
Returns true if this instance represents a package.


isClass

public boolean isClass()
Returns true if this instance represents a class.


setWorksetName

public void setWorksetName(java.lang.String worksetName)
Sets the workset name.


setContainerName

public void setContainerName(java.lang.String containerName)
Sets the container name.


setPackageName

public void setPackageName(java.lang.String packageName)
Sets the package name.


setClassName

public void setClassName(java.lang.String className)
Sets the class name. The class name must not contain its qualifying package name.


asParameterMap

public IParameterMap asParameterMap()
Returns a parameter map that has the attributes set from this model element identifier.