Package africa.absa.inception.core.xml
Class XmlSchemaClasspathInputSource
- java.lang.Object
-
- africa.absa.inception.core.xml.XmlSchemaClasspathInputSource
-
- All Implemented Interfaces:
LSInput
public class XmlSchemaClasspathInputSource extends Object implements LSInput
The XmlSchemaClasspathInputSource class provides an implementation of the org.w3c.dom.ls.LSInput interface that allows resources to be retrieved from the classpath.- Author:
- Marcus Portmann
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseURI()Returns the base URI to be used for resolving a relative systemId to an absolute URI.InputStreamgetByteStream()Returns the InputStream for the input source.booleangetCertifiedText()Returns true if the input source is certified or false otherwise.ReadergetCharacterStream()Returns the character stream for the input source.StringgetEncoding()Returns the character encoding for the input source.StringgetNamespaceURI()Returns the namespace for this input source.StringgetPublicId()Returns the public identifier for this input source.StringgetStringData()Returns the String data for the input sourceStringgetSystemId()Returns the system identifier for this input source.voidsetBaseURI(String baseURI)Set the base URI to be used for resolving a relative systemId to an absolute URI.voidsetByteStream(InputStream byteStream)Set the byte stream for the input source.voidsetCertifiedText(boolean certifiedText)Set whether the input source is certified.voidsetCharacterStream(Reader characterStream)Set the character stream for the input sourcevoidsetEncoding(String encoding)Set the character encoding for the input source.voidsetPublicId(String publicId)Set the public identifier for this input source.voidsetStringData(String stringData)Set the String data for the input source.voidsetSystemId(String systemId)Set the system identifier for this input source.
-
-
-
Constructor Detail
-
XmlSchemaClasspathInputSource
public XmlSchemaClasspathInputSource(String namespaceURI, String publicId, String systemId, String baseURI, String classpathName)
Constructs a new XmlSchemaClasspathInputSource.- Parameters:
namespaceURI- the namespace for this input sourcepublicId- the public identifier for this input source.systemId- the system identifier for this input sourcebaseURI- the base URI to be used for resolving a relative systemId to an absolute URIclasspathName- the name of the resource on the classpath for this input source
-
-
Method Detail
-
getBaseURI
public String getBaseURI()
Returns the base URI to be used for resolving a relative systemId to an absolute URI.- Specified by:
getBaseURIin interfaceLSInput- Returns:
- the base URI to be used for resolving a relative systemId to an absolute URI
-
getByteStream
public InputStream getByteStream()
Returns the InputStream for the input source.- Specified by:
getByteStreamin interfaceLSInput- Returns:
- the InputStream for the input source
-
getCertifiedText
public boolean getCertifiedText()
Returns true if the input source is certified or false otherwise.- Specified by:
getCertifiedTextin interfaceLSInput- Returns:
- true if the input source is certified or false otherwise
-
getCharacterStream
public Reader getCharacterStream()
Returns the character stream for the input source.- Specified by:
getCharacterStreamin interfaceLSInput- Returns:
- the character stream for the input source
-
getEncoding
public String getEncoding()
Returns the character encoding for the input source.- Specified by:
getEncodingin interfaceLSInput- Returns:
- the character encoding for the input source
-
getNamespaceURI
public String getNamespaceURI()
Returns the namespace for this input source.- Returns:
- the namespace for this input source
-
getPublicId
public String getPublicId()
Returns the public identifier for this input source.- Specified by:
getPublicIdin interfaceLSInput- Returns:
- the public identifier for this input source
-
getStringData
public String getStringData()
Returns the String data for the input source- Specified by:
getStringDatain interfaceLSInput- Returns:
- the String data for the input source
-
getSystemId
public String getSystemId()
Returns the system identifier for this input source.- Specified by:
getSystemIdin interfaceLSInput- Returns:
- the system identifier for this input source
-
setBaseURI
public void setBaseURI(String baseURI)
Set the base URI to be used for resolving a relative systemId to an absolute URI.- Specified by:
setBaseURIin interfaceLSInput- Parameters:
baseURI- the base URI to be used for resolving a relative systemId to an absolute URI
-
setByteStream
public void setByteStream(InputStream byteStream)
Set the byte stream for the input source.- Specified by:
setByteStreamin interfaceLSInput- Parameters:
byteStream- the byte stream for the input source
-
setCertifiedText
public void setCertifiedText(boolean certifiedText)
Set whether the input source is certified.- Specified by:
setCertifiedTextin interfaceLSInput- Parameters:
certifiedText- true if the input source is certified or false otherwise
-
setCharacterStream
public void setCharacterStream(Reader characterStream)
Set the character stream for the input source- Specified by:
setCharacterStreamin interfaceLSInput- Parameters:
characterStream- the character stream for the input source
-
setEncoding
public void setEncoding(String encoding)
Set the character encoding for the input source.- Specified by:
setEncodingin interfaceLSInput- Parameters:
encoding- the character encoding for the input source
-
setPublicId
public void setPublicId(String publicId)
Set the public identifier for this input source.- Specified by:
setPublicIdin interfaceLSInput- Parameters:
publicId- the public identifier for this input source
-
setStringData
public void setStringData(String stringData)
Set the String data for the input source.- Specified by:
setStringDatain interfaceLSInput- Parameters:
stringData- the String data for the input source
-
setSystemId
public void setSystemId(String systemId)
Set the system identifier for this input source.- Specified by:
setSystemIdin interfaceLSInput- Parameters:
systemId- the system identifier for this input source
-
-