|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wsil.WSILDocument
public abstract class WSILDocument
Instance of a WS-Inspection document.
Field Summary | |
---|---|
protected DocumentReader |
docReader
Set default document reader. |
protected java.lang.String |
documentURL
WSIL document URL. |
protected DocumentWriter |
docWriter
Set default document writer. |
protected ExtensionRegistry |
extRegistry
WS-Inspection extension registry. |
protected Inspection |
inspection
Inspection element. |
Constructor Summary | |
---|---|
WSILDocument()
|
Method Summary | |
---|---|
abstract Abstract |
createAbstract()
Create abstract element. |
abstract Description |
createDescription()
Create description element. |
abstract Link |
createLink()
Create link element. |
abstract Service |
createService()
Create service element. |
abstract ServiceName |
createServiceName()
Create service name element. |
ExtensionRegistry |
getExtensionRegistry()
Get the WS-Inspection extension registry implementation. |
Inspection |
getInspection()
Get the inspection element for this document. |
DocumentReader |
getReader()
Get the WS-Inspection reader implementation. |
DocumentWriter |
getWriter()
Get the WS-Inspection writer implementation. |
static void |
main(java.lang.String[] args)
Read a WS-Inspection document and display its contents. |
static WSILDocument |
newInstance()
|
void |
read(java.io.Reader reader)
Read the WS-Inspection document from a input reader. |
void |
read(java.lang.String urlString)
Read the WS-Inspection document from a file URL string. |
void |
read(java.net.URL url)
Read the WS-Inspection document from a location specified using a URL. |
java.lang.String |
resolveURL(java.lang.String relativeURL)
This method is used to resolve a relative URL into a full URL. |
void |
setDocumentURL(java.lang.String documentURL)
Set the location for the WS-Inspection document. |
void |
setExtensionRegistry(ExtensionRegistry extRegistry)
Set the WS-Inspection extension registry implementation. |
void |
setReader(DocumentReader docReader)
Set the WS-Inspection reader implementation. |
void |
setWriter(DocumentWriter docWriter)
Set the WS-Inspection writer implementation. |
java.lang.String |
toString()
Return string representation of this object. |
void |
write(java.lang.String filename)
Write the WS-Inspection document to an output file. |
void |
write(java.io.Writer writer)
Write the WS-Inpsection document to an output writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DocumentReader docReader
protected DocumentWriter docWriter
protected ExtensionRegistry extRegistry
protected Inspection inspection
protected java.lang.String documentURL
Constructor Detail |
---|
public WSILDocument()
Method Detail |
---|
public abstract Abstract createAbstract()
public abstract Description createDescription()
public abstract Link createLink()
public abstract Service createService()
public abstract ServiceName createServiceName()
public ExtensionRegistry getExtensionRegistry()
Returns
- a reference to the extension registry.public Inspection getInspection()
public DocumentReader getReader()
public DocumentWriter getWriter()
public static void main(java.lang.String[] args)
args
- command line argumentspublic static WSILDocument newInstance() throws WSILException
WSILException
public void read(java.io.Reader reader) throws WSILException
reader
- the input reader
WSILException
public void read(java.lang.String urlString) throws WSILException
urlString
- the file URL string for the WS-Inspection document
WSILException
public void read(java.net.URL url) throws WSILException
url
- location of the document
WSILException
public void setExtensionRegistry(ExtensionRegistry extRegistry) throws WSILException
extRegistry
- the extension registry implementation
WSILException
public void setReader(DocumentReader docReader)
docReader
- the WS-Inpsection document readerpublic void setWriter(DocumentWriter docWriter)
docWriter
- the WS-Inpsection document writerpublic java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.Writer writer) throws WSILException
writer
- the output writer
WSILException
public void write(java.lang.String filename) throws WSILException
filename
- the filename for the WS-Inspection document
WSILException
public java.lang.String resolveURL(java.lang.String relativeURL)
relativeURL
- the relative URL value
public void setDocumentURL(java.lang.String documentURL)
documentURL
- the document URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |