|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scribble.common.resource.ResourceContent
public class ResourceContent

This class represents resource content to be used by the Scribble tools.
| Constructor Summary | |
|---|---|
ResourceContent(URI uri)
This construct is initialized with the resource URI. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream()
This method returns the input stream for accessing the content. |
String |
getName()
This method returns the content name if available. |
boolean |
hasExtension(String ext)
This method determines whether the content has an extension of the specified type. |
boolean |
isXSDElement(QName xsdElem)
This method determines whether the content is an XSD element of the value specified. |
boolean |
isXSDType(QName xsdType)
This method determines whether the content is an XSD type of the value specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceContent(URI uri)
uri - The uri| Method Detail |
|---|
public String getName()
getName in interface Content
public InputStream getInputStream()
throws IOException
getInputStream in interface ContentIOException - Failed to get input streampublic boolean hasExtension(String ext)
hasExtension in interface Contentext - The extension
public boolean isXSDType(QName xsdType)
isXSDType in interface ContentxsdType - The XSD type name
public boolean isXSDElement(QName xsdElem)
isXSDElement in interface ContentxsdElem - The XSD element name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||