|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.resources.ResourceSheet
public class ResourceSheet
ResourceSheet is the object form of a Resource Sheet.
It is parsed in two stages. The first being a preamble parse where it
just looks for the scents related to this resource sheet (cheap). The
second performs the parse of all resource descriptions within the file
and should only be done when there is a resource that needs to be retrieved
from this file (expensive).
| Constructor Summary | |
|---|---|
ResourceSheet(ResourceDirectory parent,
org.w3c.dom.Element rootElement)
Creates a new ResourceSheet instance. |
|
ResourceSheet(java.lang.String rdfAsString)
Constructs a ResourceSheet object from an in-memory RDF (as a Java String). |
|
ResourceSheet(java.net.URI resSheetURI)
Creates a new ResourceSheet instance. |
|
| Method Summary | |
|---|---|
java.net.URI |
getBaseURI()
getBaseURI returns the URI without any file names added, for use in referring to the
base directory this document loaded from. |
java.util.List<java.lang.String> |
getDomains()
Returns the domains that this ResourceSheet contains. |
java.util.List<java.lang.String> |
getFormats()
Returns all formats used in this ResourceSheet. |
java.util.List<java.lang.String> |
getLangs()
Returns all languages used in this ResourceSheet. |
java.util.List<IResource> |
getResources()
|
java.util.List<java.net.URI> |
getResourceSheetURIs()
|
java.util.List<Constants.ResourceRole> |
getRoles()
|
org.w3c.dom.Element |
getRootElement()
|
java.util.List<Constants.ResourceType> |
getTypes()
|
java.net.URI |
getUri()
|
boolean |
hasUserPreferences(UserPreferences uprefs)
Describe hasUserPreferences method here. |
boolean |
isDescriptionParsed()
|
boolean |
isParsed()
Describe isParsed method here. |
boolean |
isPreambleParsed()
|
void |
parseDescriptions()
Describe parseDescriptions method here. |
void |
parsePreamble()
Describe parsePreamble method here. |
void |
resetParseFlag()
Describe resetParseFlag method here. |
java.lang.String |
toString()
Describe toString method here. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceSheet(ResourceDirectory parent,
org.w3c.dom.Element rootElement)
throws UrcException
ResourceSheet instance.
parent - a ResourceDirectory valuerootElement - an Element value
UrcException - if an error occurs
public ResourceSheet(java.lang.String rdfAsString)
throws UrcException
rdfAsString - the String representing the RDF resource file.
UrcException - if there is a failure to parse the RDF.
public ResourceSheet(java.net.URI resSheetURI)
throws UrcException
ResourceSheet instance.
resSheetURI - an URI value
UrcException - if an error occurs| Method Detail |
|---|
public java.net.URI getBaseURI()
getBaseURI returns the URI without any file names added, for use in referring to the
base directory this document loaded from.
URI valuepublic java.util.List<java.lang.String> getDomains()
List<String> of domains.public java.util.List<java.lang.String> getFormats()
public java.util.List<java.lang.String> getLangs()
public java.util.List<java.net.URI> getResourceSheetURIs()
public java.util.List<Constants.ResourceRole> getRoles()
public org.w3c.dom.Element getRootElement()
public java.util.List<Constants.ResourceType> getTypes()
public java.net.URI getUri()
public boolean hasUserPreferences(UserPreferences uprefs)
hasUserPreferences method here.
uprefs - an UserPreferences value
boolean valuepublic boolean isDescriptionParsed()
public boolean isParsed()
isParsed method here.
boolean valuepublic boolean isPreambleParsed()
public void parseDescriptions()
throws UrcException
parseDescriptions method here.
UrcException - if an error occurs
public void parsePreamble()
throws UrcException
parsePreamble method here.
UrcException - if an error occurspublic void resetParseFlag()
resetParseFlag method here.
public java.lang.String toString()
toString method here.
toString in class java.lang.ObjectString valuepublic java.util.List<IResource> getResources()
List of resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||