net.sourceforge.nrl.parser.model
Interface IClassifier

All Superinterfaces:
IModelElement
All Known Subinterfaces:
IDataType, IEnumerationLiteral
All Known Implementing Classes:
AbstractClassifier, UML2Classifier, UML2DataType, XSDClassifier, XSDDataType

public interface IClassifier
extends IModelElement

A classifier, inspired by UML, is a model element with attributes.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement
IModelElement.ElementType
 
Method Summary
 IAttribute getAttributeByName(String name, boolean includeInherited)
          Return an attribute by name, or null if not found.
 List<IAttribute> getAttributes(boolean includeInherited)
          Return a collection of IAttribute objects.
 boolean hasAttribute(String name)
          Return true if a classifier has an attribute with a given name, or false otherwise.
 boolean hasStaticAttributes()
          Return true if the classifier contains any static attributes.
 boolean isEnumeration()
          Return true if the classifier is just an enumeration.
 
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement
getContainingPackage, getDescendants, getDocumentation, getElementType, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserData
 

Method Detail

getAttributes

List<IAttribute> getAttributes(boolean includeInherited)
Return a collection of IAttribute objects.

Parameters:
includeInherited - if true, move up the inheritance hierarchy and include all attributes declared in superclasses
Returns:
the attributes

getAttributeByName

IAttribute getAttributeByName(String name,
                              boolean includeInherited)
Return an attribute by name, or null if not found.

Parameters:
name - the name to look for
includeInherited - if true, search the inherited attributes for the name
Returns:
the attribute or null

hasAttribute

boolean hasAttribute(String name)
Return true if a classifier has an attribute with a given name, or false otherwise.

Parameters:
name - the name
Returns:
true if the attribute is present

hasStaticAttributes

boolean hasStaticAttributes()
Return true if the classifier contains any static attributes.

Returns:
true or false

isEnumeration

boolean isEnumeration()
Return true if the classifier is just an enumeration. An enumeration is a collection of static attributes.

Returns:
true or false


Copyright © 2006-2010 Christian Nentwich and others