|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.nrl.parser.model.AbstractAttribute
public abstract class AbstractAttribute
A basic attribute implementation, to be subclassed. This provides a very basic implementation that managements a name and attribute type.
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.model.IAttribute |
---|
UNBOUNDED |
Constructor Summary | |
---|---|
AbstractAttribute(String name)
|
Method Summary | |
---|---|
String |
getName()
Return the attribute's name. |
String |
getOriginalName()
Some attributes have to be renamed on loading. |
IClassifier |
getOwner()
Return the classifier that owns the attribute. |
IModelElement |
getType()
Return the type. |
Object |
getUserData(String key)
Return user data stored on this attribute. |
boolean |
isRepeating()
Returns true if the attribute can occur more than once, i.e. |
void |
setName(String name)
|
void |
setOriginalName(String name)
|
void |
setOwner(IClassifier owner)
|
void |
setType(IModelElement type)
|
void |
setUserData(String key,
Object data)
Set user data to be stored on this attribute. |
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.IAttribute |
---|
getDocumentation, getMaxOccurs, getMinOccurs, isStatic |
Constructor Detail |
---|
public AbstractAttribute(String name)
Method Detail |
---|
public String getName()
IAttribute
getName
in interface IAttribute
public String getOriginalName()
IAttribute
In all other cases, the method returns the same as IAttribute.getName()
.
getOriginalName
in interface IAttribute
public IClassifier getOwner()
IAttribute
getOwner
in interface IAttribute
public IModelElement getType()
IAttribute
getType
in interface IAttribute
public Object getUserData(String key)
IAttribute
getUserData
in interface IAttribute
key
- the key under which the data is stored
public boolean isRepeating()
IAttribute
isRepeating
in interface IAttribute
public void setName(String name)
public void setOriginalName(String name)
public void setOwner(IClassifier owner)
public void setType(IModelElement type)
public void setUserData(String key, Object data)
IAttribute
setUserData
in interface IAttribute
key
- the key under which the data is storeddata
- the data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |