Module org.postgresql.pljava
Package org.postgresql.pljava
Interface Adjusting.XML.Source<T extends Source>
-
- All Superinterfaces:
Adjusting.XML.Parsing<Adjusting.XML.Source<T>>
,Source
- All Known Subinterfaces:
Adjusting.XML.DOMSource
,Adjusting.XML.SAXSource
,Adjusting.XML.StAXSource
- Enclosing class:
- Adjusting.XML
public static interface Adjusting.XML.Source<T extends Source> extends Adjusting.XML.Parsing<Adjusting.XML.Source<T>>, Source
Adjusting version ofjavax.xml.transform.Source
, allowing various parser features to be configured before callingget()
to obtain the usableSource
object.Passing this class itself to an
SQLXML
object'sgetSource
method, as inSource src = sqx.getSource(Adjusting.XML.Source.class);
will allow the implementation to choose the particular subtype ofSource
it will return. To obtain aSource
of a particular desired type, pass the class literal of one of the subtypesAdjusting.XML.SAXSource
,Adjusting.XML.StAXSource
, orAdjusting.XML.DOMSource
.The
get()
method can only be called once. The adjusting methods inherited fromAdjusting.XML.Parsing
can only be called beforeget()
.Although this extends
javax.xml.transform.Source
, implementing classes will likely throw exceptions from theSource
-specific methods for getting and setting system IDs. Those methods, if needed, should be called on theSource
object obtained fromget()
.
-
-
Method Summary
-
Methods inherited from interface org.postgresql.pljava.Adjusting.XML.Parsing
accessExternalDTD, accessExternalSchema, allowDTD, defaults, elementAttributeLimit, entityExpansionLimit, entityReplacementLimit, entityResolver, expandEntityReferences, externalGeneralEntities, externalParameterEntities, ignoreDTD, lax, loadExternalDTD, maxElementDepth, maxGeneralEntitySizeLimit, maxParameterEntitySizeLimit, maxXMLNameLimit, schema, setFirstSupportedFeature, setFirstSupportedProperty, totalEntitySizeLimit, xIncludeAware
-
Methods inherited from interface javax.xml.transform.Source
getSystemId, isEmpty, setSystemId
-
-
-
-
Method Detail
-
get
T get() throws SQLException
Returns an object of the expectedSource
subtype reflecting any adjustments made with the other methods.Refer to
the {@code Parsing} class description
and thelax()
method for how any exceptions caught while applying best-effort adjustments are handled.- Returns:
- an implementing object of the expected Source subtype
- Throws:
SQLException
- for any reason thatgetSource
might have thrown when supplying the corresponding non-Adjusting subtype of Source, or for reasons saved while applying adjustments.
-
-