Class XSDLSInput
- java.lang.Object
-
- org.certificateservices.messages.csmessages.XSDLSInput
-
- All Implemented Interfaces:
org.w3c.dom.ls.LSInput
- Direct Known Subclasses:
XSDLSInput
public class XSDLSInput extends java.lang.Object implements org.w3c.dom.ls.LSInputXSD Input implementation of a LSInput Interface used when resolving references inside XSD schema to avoid external look-ups.
-
-
Constructor Summary
Constructors Constructor Description XSDLSInput(java.lang.String publicId, java.lang.String systemId, java.io.InputStream resourceAsStream)Alternate contructor with input stream of the schema as argument.XSDLSInput(java.lang.String publicId, java.lang.String systemId, java.lang.String content)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseURI()java.io.InputStreamgetByteStream()booleangetCertifiedText()java.io.ReadergetCharacterStream()java.lang.StringgetEncoding()java.lang.StringgetPublicId()java.lang.StringgetStringData()java.lang.StringgetSystemId()voidsetBaseURI(java.lang.String baseURI)voidsetByteStream(java.io.InputStream byteStream)voidsetCertifiedText(boolean certifiedText)voidsetCharacterStream(java.io.Reader characterStream)voidsetEncoding(java.lang.String encoding)voidsetPublicId(java.lang.String publicId)voidsetStringData(java.lang.String stringData)voidsetSystemId(java.lang.String systemId)
-
-
-
Constructor Detail
-
XSDLSInput
public XSDLSInput(java.lang.String publicId, java.lang.String systemId, java.lang.String content)Default constructor.- Parameters:
publicId- the publicId of the schema.systemId- the systemId of the schemacontent- the schema data.
-
XSDLSInput
public XSDLSInput(java.lang.String publicId, java.lang.String systemId, java.io.InputStream resourceAsStream) throws MessageProcessingExceptionAlternate contructor with input stream of the schema as argument.- Parameters:
publicId- the publicId of the schema.systemId- the systemId of the schemaresourceAsStream- the input stream containing schema data.- Throws:
MessageProcessingException- if problems occurred reading the schema from class path
-
-
Method Detail
-
getBaseURI
public java.lang.String getBaseURI()
- Specified by:
getBaseURIin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getBaseURI()
-
getByteStream
public java.io.InputStream getByteStream()
- Specified by:
getByteStreamin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getByteStream()
-
getCertifiedText
public boolean getCertifiedText()
- Specified by:
getCertifiedTextin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getCertifiedText()
-
getCharacterStream
public java.io.Reader getCharacterStream()
- Specified by:
getCharacterStreamin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getCharacterStream()
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncodingin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getEncoding()
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicIdin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getPublicId()
-
getStringData
public java.lang.String getStringData()
- Specified by:
getStringDatain interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getStringData()
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.getSystemId()
-
setBaseURI
public void setBaseURI(java.lang.String baseURI)
- Specified by:
setBaseURIin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setBaseURI(java.lang.String)
-
setByteStream
public void setByteStream(java.io.InputStream byteStream)
- Specified by:
setByteStreamin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setByteStream(java.io.InputStream)
-
setCertifiedText
public void setCertifiedText(boolean certifiedText)
- Specified by:
setCertifiedTextin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setCertifiedText(boolean)
-
setCharacterStream
public void setCharacterStream(java.io.Reader characterStream)
- Specified by:
setCharacterStreamin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setCharacterStream(java.io.Reader)
-
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncodingin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setEncoding(java.lang.String)
-
setPublicId
public void setPublicId(java.lang.String publicId)
- Specified by:
setPublicIdin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setPublicId(java.lang.String)
-
setStringData
public void setStringData(java.lang.String stringData)
- Specified by:
setStringDatain interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setStringData(java.lang.String)
-
setSystemId
public void setSystemId(java.lang.String systemId)
- Specified by:
setSystemIdin interfaceorg.w3c.dom.ls.LSInput- See Also:
LSInput.setSystemId(java.lang.String)
-
-