|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.higgins.idas.impl.BasicAttributeSet
public class BasicAttributeSet
Basic implementation of IHasAttributes
.
This class uses a HashMap
of URI
and String
to hold the attributes.
Constructor Summary | |
---|---|
BasicAttributeSet()
|
|
BasicAttributeSet(Iterable<IAttribute> attrs)
|
Method Summary | |
---|---|
void |
addAttribute(IAttribute attribute)
|
IAttribute |
createAttribute(URI type,
IPropertyValue value)
Creates and adds an attribute for this object. |
IAttribute |
createAttribute(URI type,
Iterable<IPropertyValue> values)
Creates and adds an attribute for this object. |
IAttribute |
getAttribute(URI attrID)
Return specified attribute of this object |
Iterable<IAttribute> |
getAttributes()
Return all attributes of this object |
void |
removeAttribute(IAttribute attribute)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAttributeSet()
public BasicAttributeSet(Iterable<IAttribute> attrs)
Method Detail |
---|
public IAttribute createAttribute(URI type, IPropertyValue value) throws IdASException
IHasAttributes
createAttribute
in interface IHasAttributes
type
- The attribute's type.value
- The attribute's value.
IdASException
public IAttribute createAttribute(URI type, Iterable<IPropertyValue> values) throws IdASException
IHasAttributes
createAttribute
in interface IHasAttributes
type
- The attribute's type.values
- The attribute's values.
IdASException
public void addAttribute(IAttribute attribute) throws IdASException
addAttribute
in interface IHasAttributes
IdASException
public void removeAttribute(IAttribute attribute) throws IdASException
removeAttribute
in interface IHasAttributes
IdASException
public Iterable<IAttribute> getAttributes() throws IdASException
IHasAttributes
getAttributes
in interface IHasAttributes
Iterable
object of IAttribute
s.
IdASException
public IAttribute getAttribute(URI attrID) throws IdASException
IHasAttributes
getAttribute
in interface IHasAttributes
attrID
- The identifier of the attribute to be returned.
IAttribute
or null
if none exits.
IdASException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |