Constructor and Description |
---|
Attributes() |
Modifier and Type | Method and Description |
---|---|
Attribute |
addAttribute(Attribute attr)
Import an attribute from another entity, or make a copy of one
on this entity.
|
Attribute |
addAttribute(String name)
Add an attribute of the given type.
|
void |
clearAttributes()
Clear all attributes from this entity.
|
Attribute |
getAttribute(String name)
Return the attribute with the given name.
|
Attribute[] |
getAttributes()
Return all the attributes owned by this entity.
|
Attribute[] |
getAttributes(String name)
Return all attributes with the given name.
|
boolean |
removeAttribute(Attribute attribute)
Remove the given attribute.
|
boolean |
removeAttribute(String name)
Remove all attributes with the given name from this entity.
|
void |
setAttributes(Attribute[] attrs)
Set the attributes for this entity; this method is useful for importing
all attributes from another entity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassLoader, getPool, getProject, isValid
public Attribute[] getAttributes()
public Attribute getAttribute(String name)
public Attribute[] getAttributes(String name)
public void setAttributes(Attribute[] attrs)
public Attribute addAttribute(Attribute attr)
public void clearAttributes()
public boolean removeAttribute(String name)
public boolean removeAttribute(Attribute attribute)
Copyright © 2002–2019. All rights reserved.