|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceManager<Resource>
Manages the life-cycle of the RDF resource in side the Elmo JavaBean.
| Method Summary | |
|---|---|
QName |
createQName(Resource resource)
Reverses createResource. |
Resource |
createResource(QName qname)
Creates a new resource by URI, localeName, or encoded blankNode. |
Iterator<Resource> |
createRoleQuery(Class<?> concept)
Creates a query that will return all resource that implement this concept. |
Class<?>[] |
getRoles(Resource resource)
Determine what concepts and behaviours this resource represents. |
Class<?>[] |
mergeRole(Resource resource,
Class<?> concept)
If this concept is new to this resource merge them and return the combined set of concepts and behaviours this resource now represents, otherwise return the existing roles. |
void |
removeResource(Resource resource)
Remove this resource from the repository. |
Class<?>[] |
removeRole(Resource resource,
Class<?> concept)
Removes a given role from the resource and returns the new role set for this resource. |
void |
renameResource(Resource before,
Resource after)
Change all references of before to after. |
| Method Detail |
|---|
Resource createResource(QName qname)
qname -
QName createQName(Resource resource)
resource -
createResource(QName)Class<?>[] getRoles(Resource resource)
resource -
Class<?>[] mergeRole(Resource resource,
Class<?> concept)
resource - concept -
Class<?>[] removeRole(Resource resource,
Class<?> concept)
resource - concept -
void renameResource(Resource before,
Resource after)
before to after.
before - after - void removeResource(Resource resource)
resource - Iterator<Resource> createRoleQuery(Class<?> concept)
concept -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||