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 DocumentReaderSet default document reader.protected StringWSIL document URL.protected DocumentWriterSet default document writer.protected ExtensionRegistryWS-Inspection extension registry.protected InspectionInspection element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractCreate abstract element.abstract DescriptionCreate description element.abstract LinkCreate link element.abstract ServiceCreate service element.abstract ServiceNameCreate 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 voidRead a WS-Inspection document and display its contents.static WSILDocumentvoidRead the WS-Inspection document from a input reader.voidRead the WS-Inspection document from a file URL string.voidRead 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.voidsetDocumentURL(String documentURL) Set the location for the WS-Inspection document.voidsetExtensionRegistry(ExtensionRegistry extRegistry) Set the WS-Inspection extension registry implementation.voidsetReader(DocumentReader docReader) Set the WS-Inspection reader implementation.voidsetWriter(DocumentWriter docWriter) Set the WS-Inspection writer implementation.toString()Return string representation of this object.voidWrite the WS-Inpsection document to an output writer.voidWrite 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
-