Dresden OCL Toolkit

tudresden.ocl.injection.reverseeng
Class CollectionDescriptor

java.lang.Object
  extended bytudresden.ocl.injection.reverseeng.AbstractDescriptor
      extended bytudresden.ocl.injection.reverseeng.CollectionDescriptor

public class CollectionDescriptor
extends AbstractDescriptor

Descriptor for a class attribute of collection type.

These descriptors are maintained by AnalysisConsumer in its m_lcdCollections member.

Version:
0.1
Author:
sz9 (Steffen Zschaler)

Nested Class Summary
 
Nested classes inherited from class tudresden.ocl.injection.reverseeng.AbstractDescriptor
AbstractDescriptor.AbstractDescriptorEvent, AbstractDescriptor.AbstractDescriptorListener, AbstractDescriptor.TracedTypeProposal
 
Field Summary
 
Fields inherited from class tudresden.ocl.injection.reverseeng.AbstractDescriptor
s_sAllTypesReasonString, s_sMinimalTypeReasonString
 
Constructor Summary
CollectionDescriptor(AnalysisConsumer acOwner, JavaClass jcParent, String sName, String sType, String sComment, int nCommentID)
          Creates new CollectionDescriptor
 
Method Summary
 RevengTreeNode createTreeNode(DefaultTreeModel dtmModel)
          Create tree node to render this descriptor.
 boolean isCollection()
          True, if feature described is a collection and not a map.
 String toString()
           
 
Methods inherited from class tudresden.ocl.injection.reverseeng.AbstractDescriptor
addModifiedListener, adjustDocComment, fireModified, getCommentID, getContainingClass, getDisplayName, getDocComment, getElementType, getJavaDocName, getKeyType, getName, getProposedElementTypes, getProposedKeyTypes, getType, indentComment, isIncomplete, removeModifiedListener, setAssociatedTreeNode, setElementType, setKeyType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionDescriptor

public CollectionDescriptor(AnalysisConsumer acOwner,
                            JavaClass jcParent,
                            String sName,
                            String sType,
                            String sComment,
                            int nCommentID)
Creates new CollectionDescriptor

Parameters:
sName - the attribute's name
sComment - the associated doc comment
nCommentID - the comment number of the associated doc comment
Method Detail

toString

public String toString()

createTreeNode

public RevengTreeNode createTreeNode(DefaultTreeModel dtmModel)
Description copied from class: AbstractDescriptor
Create tree node to render this descriptor.

Specified by:
createTreeNode in class AbstractDescriptor
Parameters:
dtmModel - Tree model which the tree node should become part of.
Returns:
the freshly created node

isCollection

public boolean isCollection()
Description copied from class: AbstractDescriptor
True, if feature described is a collection and not a map.

Specified by:
isCollection in class AbstractDescriptor
Returns:
true, if feature described is a collection and not a map

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.