Package org.apache.wsil
Class WSILDocument
java.lang.Object
org.apache.wsil.WSILDocument
- Direct Known Subclasses:
WSILDocumentImpl
Instance of a WS-Inspection document.
- Version:
- 1.0
- Author:
- Peter Brittenham
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentReader
Set default document reader.protected String
WSIL document URL.protected DocumentWriter
Set default document writer.protected ExtensionRegistry
WS-Inspection extension registry.protected Inspection
Inspection element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Abstract
Create abstract element.abstract Description
Create description element.abstract Link
Create link element.abstract Service
Create service element.abstract ServiceName
Create service name element.Get the WS-Inspection extension registry implementation.Get the inspection element for this document.Get the WS-Inspection reader implementation.Get the WS-Inspection writer implementation.static void
Read a WS-Inspection document and display its contents.static WSILDocument
void
Read the WS-Inspection document from a input reader.void
Read the WS-Inspection document from a file URL string.void
Read the WS-Inspection document from a location specified using a URL.resolveURL
(String relativeURL) This method is used to resolve a relative URL into a full URL.void
setDocumentURL
(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.toString()
Return string representation of this object.void
Write the WS-Inpsection document to an output writer.void
Write the WS-Inspection document to an output file.
-
Field Details
-
docReader
Set default document reader. -
docWriter
Set default document writer. -
extRegistry
WS-Inspection extension registry. -
inspection
Inspection element. -
documentURL
WSIL document URL. NOTE: This field will not be set when the document is read from a Reader.
-
-
Constructor Details
-
WSILDocument
public WSILDocument()
-
-
Method Details
-
createAbstract
Create abstract element.- Returns:
- Returns an abstract object.
-
createDescription
Create description element.- Returns:
- Returns a description object.
-
createLink
Create link element.- Returns:
- Returns a link object.
-
createService
Create service element.- Returns:
- Returns a service object.
-
createServiceName
Create service name element.- Returns:
- Returns a serviceName object.
-
getExtensionRegistry
Get the WS-Inspection extension registry implementation.- Parameters:
Returns
- a reference to the extension registry.
-
getInspection
Get the inspection element for this document.- Returns:
- Returns a reference to the inspection element.
-
getReader
Get the WS-Inspection reader implementation.- Returns:
- Returns the document reader.
-
getWriter
Get the WS-Inspection writer implementation.- Returns:
- Returns the document writer.
-
main
Read a WS-Inspection document and display its contents.- Parameters:
args
- command line arguments
-
newInstance
- Throws:
WSILException
-
read
Read the WS-Inspection document from a input reader.- Parameters:
reader
- the input reader- Throws:
WSILException
-
read
Read the WS-Inspection document from a file URL string.- Parameters:
urlString
- the file URL string for the WS-Inspection document- Throws:
WSILException
-
read
Read the WS-Inspection document from a location specified using a URL.- Parameters:
url
- location of the document- Throws:
WSILException
-
setExtensionRegistry
Set the WS-Inspection extension registry implementation.- Parameters:
extRegistry
- the extension registry implementation- Throws:
WSILException
-
setReader
Set the WS-Inspection reader implementation.- Parameters:
docReader
- the WS-Inpsection document reader
-
setWriter
Set the WS-Inspection writer implementation.- Parameters:
docWriter
- the WS-Inpsection document writer
-
toString
Return string representation of this object. -
write
Write the WS-Inpsection document to an output writer.- Parameters:
writer
- the output writer- Throws:
WSILException
-
write
Write the WS-Inspection document to an output file.- Parameters:
filename
- the filename for the WS-Inspection document- Throws:
WSILException
-
resolveURL
This method is used to resolve a relative URL into a full URL.- Parameters:
relativeURL
- the relative URL value- Returns:
- Returns the full URL.
-
setDocumentURL
Set the location for the WS-Inspection document.- Parameters:
documentURL
- the document URL
-