tudresden.ocl.injection.reverseeng
Class CollectionDescriptor
java.lang.Object
tudresden.ocl.injection.reverseeng.AbstractDescriptor
tudresden.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)
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 |
CollectionDescriptor
public CollectionDescriptor(AnalysisConsumer acOwner,
JavaClass jcParent,
String sName,
String sType,
String sComment,
int nCommentID)
- Creates new CollectionDescriptor
- Parameters:
sName
- the attribute's namesComment
- the associated doc commentnCommentID
- the comment number of the associated doc comment
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.