|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEntity
An Entity is a super-type for Digital Subjects and Resources. An Entity is comprised of a Name (identifier), Type, and Attributes.
Method Summary | |
---|---|
void |
addAttribute(IAttribute attribute)
|
IAttribute |
createAttribute(URI type,
IPropertyValue value)
Creates and adds an attribute for this Entity. |
IAttribute |
createAttribute(URI type,
Iterable<IPropertyValue> values)
Creates and adds an attribute for this Entity. |
IAttribute |
getAttribute(URI attrID)
Return specified attribute of this Entity |
Iterable<IAttribute> |
getAttributes()
Return all attributes of this Entity |
String |
getName()
|
String |
getType()
Returns the type of this Entity. As all Entities are required to have a type attribute, this is a shortcut for calling getAttribute("<URI of type attrID>"). |
void |
removeAttribute(IAttribute attribute)
|
Method Detail |
---|
String getName() throws IdASException
IdASException
String getType() throws IdASException
IdASException
IAttribute createAttribute(URI type, IPropertyValue value) throws IdASException
type
- The attribute's type.value
- The attribute's value.
IdASException
IAttribute createAttribute(URI type, Iterable<IPropertyValue> values) throws IdASException
type
- The attribute's type.values
- The attribute's values.
IdASException
void addAttribute(IAttribute attribute) throws IdASException
IdASException
void removeAttribute(IAttribute attribute) throws IdASException
IdASException
Iterable<IAttribute> getAttributes() throws IdASException
Iterable
object of IAttribute
s.
IdASException
IAttribute getAttribute(URI attrID) throws IdASException
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 |