|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nrl.parser.model.AbstractModelElement
net.sourceforge.nrl.parser.model.AbstractClassifier
public abstract class AbstractClassifier
Abstract basic implementation of a classifier that manages attribute collections. Subclasses need to provide further detail.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
IModelElement.ElementType |
Constructor Summary | |
---|---|
AbstractClassifier(String name,
IPackage container)
|
Method Summary | |
---|---|
void |
addAttribute(IAttribute attribute)
|
IAttribute |
getAttributeByName(String name,
boolean includeInherited)
Return an attribute by name, or null if not found. |
List<IAttribute> |
getAttributes()
Return the actual, unmodified attribute list for use by subclasses. |
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 |
hasNonStaticAttributes()
|
boolean |
hasStaticAttributes()
Return true if the classifier contains any static attributes. |
boolean |
isEnumeration()
Return true if the classifier is just an enumeration. |
void |
removeAttribute(IAttribute attribute)
|
void |
removeAttributeNameMapping(String name)
|
void |
setEnumeration(boolean enumeration)
|
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractModelElement |
---|
addChild, getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setName, setOriginalName, setParent, setSupplementary, setUserData |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
getContainingPackage, getDescendants, getDocumentation, getElementType, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserData |
Constructor Detail |
---|
public AbstractClassifier(String name, IPackage container)
Method Detail |
---|
public void addAttribute(IAttribute attribute)
public List<IAttribute> getAttributes(boolean includeInherited)
IClassifier
IAttribute
objects.
getAttributes
in interface IClassifier
includeInherited
- if true, move up the inheritance hierarchy and
include all attributes declared in superclasses
public List<IAttribute> getAttributes()
public IAttribute getAttributeByName(String name, boolean includeInherited)
IClassifier
getAttributeByName
in interface IClassifier
name
- the name to look forincludeInherited
- if true, search the inherited attributes for the
name
public boolean hasAttribute(String name)
IClassifier
hasAttribute
in interface IClassifier
name
- the name
public boolean hasNonStaticAttributes()
public boolean hasStaticAttributes()
IClassifier
hasStaticAttributes
in interface IClassifier
public boolean isEnumeration()
IClassifier
isEnumeration
in interface IClassifier
public void removeAttribute(IAttribute attribute)
public void removeAttributeNameMapping(String name)
public void setEnumeration(boolean enumeration)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |