|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines required functionality of a Kage Resource Manager.
Method Summary | |
void |
addAlias(java.lang.String anAlias,
LogicalResource theResource)
Adds an alias for the supplied Resource. |
void |
addParameter(java.lang.String theURI,
java.lang.String aParameter,
java.lang.Object aValue)
Adds or replaces an Resource parameter. |
void |
addResource(LogicalResource theResource)
Adds the provided Resource to the managed collection. |
java.util.Iterator |
aliases()
Provides an iterator over all aliases known by this manager. |
java.util.Iterator |
aliases(LogicalResource theResource)
Provides an iterator over all aliases for the spefcified Resource that are known by this manager. |
boolean |
containsAlias(java.lang.String anAlias)
Checks for the existence of an alias in this manager. |
boolean |
containsResource(java.lang.Object theID)
Checks for the existence of an Resource in the mananged colleciton whose ID matches the provided ID. |
LogicalResource |
createResource()
Creates a new instance of an Resource with a generated unique URI. |
LogicalResource |
createResource(java.lang.String theID)
Finds or creates an Resource by URI. |
java.lang.String |
getID()
Getter method for the ID of this manager. |
java.util.Map |
getParameters(java.lang.String theURI)
Returns an Resource's parameter map. |
LogicalResource |
getResource(java.lang.Object theURI)
Looks for an Resource in the managed colleciton whose URI matches the provided URI. |
java.lang.Object |
lookupParameter(java.lang.String theURI,
java.lang.String aParameter)
Looks up and returns an Resource's parameter value. |
LogicalResource |
lookupResource(java.lang.Object theID)
Looks for an existing instance the specified Resource by ID. |
LogicalResource |
lookupResource(java.lang.Object theURI,
boolean pLoad)
Looks for the specified Resource by ID. |
void |
removeAlias(java.lang.String anAlias)
Removes the supplied alias. |
void |
removeParameter(java.lang.String theURI,
java.lang.String aParameter)
Removes an Resource's parameter. |
void |
removeResource(LogicalResource theResource)
Removes the provided Resource from the managed collection. |
java.util.Iterator |
resources()
Provides a iterator for the ALL of the managed resources. |
Method Detail |
public java.lang.String getID()
public LogicalResource lookupResource(java.lang.Object theID)
theID
- The ID ie alias of the sought Resource.
public LogicalResource lookupResource(java.lang.Object theURI, boolean pLoad)
pLoad
- true causes a new physical instance to be loaded if no existing
match is found.
public LogicalResource createResource()
public LogicalResource createResource(java.lang.String theID)
theID
- The URI of the new Resource.
public void addResource(LogicalResource theResource)
theResource
- The Resource instance to add to the collection.public void removeResource(LogicalResource theResource)
theResource
- The Resource to remove from the collection.public LogicalResource getResource(java.lang.Object theURI)
theURI
- The URI of the sought Resource.
public boolean containsResource(java.lang.Object theID)
theID
- The ID of the sought Resource.
public java.util.Iterator resources()
public boolean containsAlias(java.lang.String anAlias)
anAlias
- The alias string.
public void addAlias(java.lang.String anAlias, LogicalResource theResource)
anAlias
- The alias string.theResource
- The Resource refered to by the alias string.public void removeAlias(java.lang.String anAlias)
anAlias
- The alias string.public java.util.Iterator aliases()
public java.util.Iterator aliases(LogicalResource theResource)
public java.util.Map getParameters(java.lang.String theURI)
theURI
- The URI of the Resource.
public java.lang.Object lookupParameter(java.lang.String theURI, java.lang.String aParameter)
theURI
- The URI of the Resource.aParameter
- The name of the parameter.
public void addParameter(java.lang.String theURI, java.lang.String aParameter, java.lang.Object aValue)
theURI
- The URI of the Resource.aParameter
- The name of the parameter to add or update.aValue
- The new value of the parameter.public void removeParameter(java.lang.String theURI, java.lang.String aParameter)
theURI
- The URI of the Resource.aParameter
- The name of the parameter to remove.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |