public abstract class WSILDocument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
WSILDocument() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected DocumentReader docReader
protected DocumentWriter docWriter
protected ExtensionRegistry extRegistry
protected Inspection inspection
protected java.lang.String documentURL
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 readerWSILException
public void read(java.lang.String urlString) throws WSILException
urlString
- the file URL string for the WS-Inspection documentWSILException
public void read(java.net.URL url) throws WSILException
url
- location of the documentWSILException
public void setExtensionRegistry(ExtensionRegistry extRegistry) throws WSILException
extRegistry
- the extension registry implementationWSILException
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 writerWSILException
public void write(java.lang.String filename) throws WSILException
filename
- the filename for the WS-Inspection documentWSILException
public java.lang.String resolveURL(java.lang.String relativeURL)
relativeURL
- the relative URL valuepublic void setDocumentURL(java.lang.String documentURL)
documentURL
- the document URLCopyright ? 2001 International Business Machines Corporation. All Rights Reserved.