|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.resources.ResourceDirectory
public class ResourceDirectory
ResourceDirectory is the programmatic version of the XML
<ResourceDirectory> element. It provides access to
the collection of resource sheets and child resource directories.
| Constructor Summary | |
|---|---|
ResourceDirectory()
Creates a new ResourceDirectory instance. |
|
ResourceDirectory(TargetDirectory parent,
org.w3c.dom.Element rootElement)
Creates a new ResourceDirectory instance. |
|
| Method Summary | |
|---|---|
boolean |
addResourceSheet(ResourceSheet rs)
Adds a ResourceSheet to the resource directory. |
java.net.URI |
getBaseURI()
Returns the base URI of the resource directory. |
java.util.List<ResourceDirectory> |
getResourceDirectories()
Returns a List of the resource directories. |
ResourceServiceDescription |
getResourceServiceDescription()
Returns the resource service description associated with this ResourceDirectory |
java.util.List<ResourceSheet> |
getResourceSheets()
Returns the resource sheets in this resource directory. |
java.util.List<UiidDescription> |
getUIIDDescriptions()
Returns the list of UIID descriptions in this resource directory. |
void |
parse()
Parses the XML to create the resource directory. |
void |
parseMatchingResourceSheets(java.util.List<java.lang.String> parsedRSKeys,
java.util.Map<java.lang.String,java.util.List<IResource>> resourceMap,
java.lang.String rsKey,
java.lang.String domain,
java.lang.String language,
java.lang.String format,
java.lang.String role,
java.lang.String type)
Iterate through ResourceSheets contained within this ResourceDirectory and parse any that do no explicitly define a hard key different than the ones specified. |
java.lang.String |
toString()
The String representation of this ResourceDirectory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceDirectory()
ResourceDirectory instance.
public ResourceDirectory(TargetDirectory parent,
org.w3c.dom.Element rootElement)
throws UrcException
ResourceDirectory instance.
parent - a TargetPropertiesSheet valuerootElement - an Element value
UrcException - if an error occurs| Method Detail |
|---|
public boolean addResourceSheet(ResourceSheet rs)
ResourceSheet to the resource directory.
rs - a ResourceSheet value
boolean valuepublic java.net.URI getBaseURI()
URI valuepublic java.util.List<ResourceDirectory> getResourceDirectories()
List of the resource directories.
List of ResourceDirectory objectspublic ResourceServiceDescription getResourceServiceDescription()
ResourceDirectory
ResourceServiceDescription valuepublic java.util.List<ResourceSheet> getResourceSheets()
List of ResourceSheet objects.public java.util.List<UiidDescription> getUIIDDescriptions()
List of UiidDescription objects
public void parse()
throws UrcException
UrcException - if an error occurspublic java.lang.String toString()
String representation of this ResourceDirectory
toString in class java.lang.ObjectString value
public void parseMatchingResourceSheets(java.util.List<java.lang.String> parsedRSKeys,
java.util.Map<java.lang.String,java.util.List<IResource>> resourceMap,
java.lang.String rsKey,
java.lang.String domain,
java.lang.String language,
java.lang.String format,
java.lang.String role,
java.lang.String type)
domain - type - role - format - language -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||