|
||||||||||
| 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 |
| Field Summary | |
|---|---|
protected Map<String,IAttribute> |
nameToAttribute
|
| 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 |
|---|
clone, equals, finalize, 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 |
| Field Detail |
|---|
protected Map<String,IAttribute> nameToAttribute
| Constructor Detail |
|---|
public AbstractClassifier(String name,
IPackage container)
| Method Detail |
|---|
public void addAttribute(IAttribute attribute)
public List<IAttribute> getAttributes(boolean includeInherited)
IClassifierIAttribute objects.
getAttributes in interface IClassifierincludeInherited - 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 IClassifiername - the name to look forincludeInherited - if true, search the inherited attributes for the
name
public boolean hasAttribute(String name)
IClassifier
hasAttribute in interface IClassifiername - the name
public boolean hasNonStaticAttributes()
public boolean hasStaticAttributes()
IClassifier
hasStaticAttributes in interface IClassifierpublic boolean isEnumeration()
IClassifier
isEnumeration in interface IClassifierpublic 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 | |||||||||