public abstract class AbstractClassifier extends AbstractModelElement implements IClassifier
IModelElement.ElementType| Modifier and Type | Field and Description |
|---|---|
protected Map<String,IAttribute> |
nameToAttribute |
OBJECT| Constructor and Description |
|---|
AbstractClassifier(String name,
IPackage container) |
| Modifier and Type | Method and Description |
|---|---|
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 |
rebuildAttributeNameMap() |
void |
removeAttribute(IAttribute attribute) |
void |
removeAttributeNameMapping(String name) |
void |
setEnumeration(boolean enumeration) |
addChild, getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setName, setOriginalName, setParent, setSupplementary, setUserDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainingPackage, getDescendants, getDocumentation, getElementType, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserDataprotected Map<String,IAttribute> nameToAttribute
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 superclassespublic List<IAttribute> getAttributes()
public IAttribute getAttributeByName(String name, boolean includeInherited)
IClassifiergetAttributeByName in interface IClassifiername - the name to look forincludeInherited - if true, search the inherited attributes for the
namepublic boolean hasAttribute(String name)
IClassifierhasAttribute in interface IClassifiername - the namepublic boolean hasNonStaticAttributes()
public boolean hasStaticAttributes()
IClassifierhasStaticAttributes in interface IClassifierpublic boolean isEnumeration()
IClassifierisEnumeration in interface IClassifierpublic void rebuildAttributeNameMap()
public void removeAttribute(IAttribute attribute)
public void removeAttributeNameMapping(String name)
public void setEnumeration(boolean enumeration)
Copyright © 2006-2013. All Rights Reserved.