Package com.xmlcalabash.runtime
Class XProcStepConfigurationImpl
-
- All Implemented Interfaces:
-
com.xmlcalabash.documents.DocumentContext
,com.xmlcalabash.runtime.XProcStepConfiguration
public class XProcStepConfigurationImpl implements XProcStepConfiguration, DocumentContext
-
-
Field Summary
Fields Modifier and Type Field Description private final Location
location
private final XmlCalabash
xmlCalabash
private final Processor
processor
private final Map<String, NamespaceUri>
inscopeNamespaces
private final Map<QName, DeclareStepInstruction>
inscopeStepTypes
private String
stepName
private final URI
baseUri
private final String
nextId
private final PipelineEnvironment
environment
private final SaxonConfiguration
saxonConfig
-
Method Summary
Modifier and Type Method Description Location
getLocation()
XmlCalabash
getXmlCalabash()
Processor
getProcessor()
Map<String, NamespaceUri>
getInscopeNamespaces()
Map<QName, DeclareStepInstruction>
getInscopeStepTypes()
String
getStepName()
Unit
setStepName(String stepName)
URI
getBaseUri()
String
getNextId()
PipelineEnvironment
getEnvironment()
SaxonConfiguration
getSaxonConfig()
Unit
error(Function0<String> message)
Unit
warn(Function0<String> message)
Unit
info(Function0<String> message)
Unit
debug(Function0<String> message)
Unit
trace(Function0<String> message)
final Unit
report(Verbosity verbosity, Map<QName, String> extraAttributes, Function0<String> message)
XProcStepConfiguration
copy()
XProcStepConfiguration
copy(XProcStepConfiguration config)
XProcStepConfiguration
copyNew()
Unit
putNamespace(String prefix, NamespaceUri uri)
Unit
putAllNamespaces(Map<String, NamespaceUri> namespaces)
Unit
putStepType(QName type, DeclareStepInstruction decl)
Unit
putAllStepTypes(Map<QName, DeclareStepInstruction> types)
Unit
setLocation(Location location)
XPathCompiler
newXPathCompiler()
DeclareStepInstruction
stepDeclaration(QName name)
Boolean
stepAvailable(QName name)
final XdmValue
parseAsType(String value, SequenceType type, Map<String, NamespaceUri> inscopeNamespaces)
final XdmAtomicValue
castAtomicAs(XdmAtomicValue value, SequenceType seqType, Map<String, NamespaceUri> inscopeNamespaces)
final XdmAtomicValue
castAtomicAs(XdmAtomicValue value, ItemType xsdtype, Map<String, NamespaceUri> inscopeNamespaces)
final Boolean
xpathInstanceOf(XdmValue value, QName type)
final XdmValue
xpathCastAs(XdmValue value, QName type)
final XdmValue
xpathTreatAs(XdmValue value, QName type)
final XdmValue
xpathPromote(XdmValue value, QName type)
XdmValue
checkType(QName varName, XdmValue value, SequenceType sequenceType, List<XdmAtomicValue> values)
XdmValue
checkType(QName varName, XdmValue value, SequenceType sequenceType, Map<String, NamespaceUri> inscopeNamespaces, List<XdmAtomicValue> values)
XdmMap
forceQNameKeys(MapItem inputMap)
XdmMap
forceQNameKeys(MapItem inputMap, Map<String, NamespaceUri> inscopeNamespaces)
XdmMap
forceQNameKeys(XdmMap inputMap)
XdmMap
forceQNameKeys(XdmMap inputMap, Map<String, NamespaceUri> inscopeNamespaces)
XProcException
exception(XProcError error)
XProcException
exception(XProcError error, Throwable cause)
Boolean
parseBoolean(String bool)
QName
parseQName(String name)
QName
parseQName(String name, Map<String, NamespaceUri> inscopeNamespaces)
QName
parseQName(String name, Map<String, NamespaceUri> inscopeNamespaces, NamespaceUri defaultNamespace)
String
parseNCName(String name)
AttributeMap
stringAttributeMap(Map<String, String> attr)
AttributeMap
attributeMap(Map<QName, String> attr)
Map<QName, String>
attributeMap(AttributeMap attributes)
XdmMap
asXdmMap(Map<QName, XdmValue> inputMap)
Map<QName, XdmValue>
asMap(XdmMap inputMap)
SequenceType
parseXsSequenceType(String asExpr)
Boolean
xpathEq(XdmValue left, XdmValue right)
Boolean
xpathEqual(XdmValue left, XdmValue right)
Boolean
xpathDeepEqual(XdmValue left, XdmValue right)
URI
resolve(String href)
final XdmValue
validateAsType(XdmValue value, SequenceType type, Map<String, NamespaceUri> inscopeNamespaces)
-
-
Method Detail
-
getLocation
Location getLocation()
-
getXmlCalabash
XmlCalabash getXmlCalabash()
-
getProcessor
Processor getProcessor()
-
getInscopeNamespaces
Map<String, NamespaceUri> getInscopeNamespaces()
-
getInscopeStepTypes
Map<QName, DeclareStepInstruction> getInscopeStepTypes()
-
getStepName
String getStepName()
-
setStepName
Unit setStepName(String stepName)
-
getBaseUri
URI getBaseUri()
-
getEnvironment
PipelineEnvironment getEnvironment()
-
getSaxonConfig
SaxonConfiguration getSaxonConfig()
-
report
final Unit report(Verbosity verbosity, Map<QName, String> extraAttributes, Function0<String> message)
-
copy
XProcStepConfiguration copy()
-
copy
XProcStepConfiguration copy(XProcStepConfiguration config)
-
copyNew
XProcStepConfiguration copyNew()
-
putNamespace
Unit putNamespace(String prefix, NamespaceUri uri)
-
putAllNamespaces
Unit putAllNamespaces(Map<String, NamespaceUri> namespaces)
-
putStepType
Unit putStepType(QName type, DeclareStepInstruction decl)
-
putAllStepTypes
Unit putAllStepTypes(Map<QName, DeclareStepInstruction> types)
-
setLocation
Unit setLocation(Location location)
-
newXPathCompiler
XPathCompiler newXPathCompiler()
-
stepDeclaration
DeclareStepInstruction stepDeclaration(QName name)
-
stepAvailable
Boolean stepAvailable(QName name)
-
parseAsType
final XdmValue parseAsType(String value, SequenceType type, Map<String, NamespaceUri> inscopeNamespaces)
-
castAtomicAs
final XdmAtomicValue castAtomicAs(XdmAtomicValue value, SequenceType seqType, Map<String, NamespaceUri> inscopeNamespaces)
-
castAtomicAs
final XdmAtomicValue castAtomicAs(XdmAtomicValue value, ItemType xsdtype, Map<String, NamespaceUri> inscopeNamespaces)
-
xpathInstanceOf
final Boolean xpathInstanceOf(XdmValue value, QName type)
-
xpathCastAs
final XdmValue xpathCastAs(XdmValue value, QName type)
-
xpathTreatAs
final XdmValue xpathTreatAs(XdmValue value, QName type)
-
xpathPromote
final XdmValue xpathPromote(XdmValue value, QName type)
-
checkType
XdmValue checkType(QName varName, XdmValue value, SequenceType sequenceType, List<XdmAtomicValue> values)
-
checkType
XdmValue checkType(QName varName, XdmValue value, SequenceType sequenceType, Map<String, NamespaceUri> inscopeNamespaces, List<XdmAtomicValue> values)
-
forceQNameKeys
XdmMap forceQNameKeys(MapItem inputMap)
-
forceQNameKeys
XdmMap forceQNameKeys(MapItem inputMap, Map<String, NamespaceUri> inscopeNamespaces)
-
forceQNameKeys
XdmMap forceQNameKeys(XdmMap inputMap)
-
forceQNameKeys
XdmMap forceQNameKeys(XdmMap inputMap, Map<String, NamespaceUri> inscopeNamespaces)
-
exception
XProcException exception(XProcError error)
-
exception
XProcException exception(XProcError error, Throwable cause)
-
parseBoolean
Boolean parseBoolean(String bool)
-
parseQName
QName parseQName(String name)
-
parseQName
QName parseQName(String name, Map<String, NamespaceUri> inscopeNamespaces)
-
parseQName
QName parseQName(String name, Map<String, NamespaceUri> inscopeNamespaces, NamespaceUri defaultNamespace)
-
parseNCName
String parseNCName(String name)
-
stringAttributeMap
AttributeMap stringAttributeMap(Map<String, String> attr)
-
attributeMap
AttributeMap attributeMap(Map<QName, String> attr)
-
attributeMap
Map<QName, String> attributeMap(AttributeMap attributes)
-
parseXsSequenceType
SequenceType parseXsSequenceType(String asExpr)
-
xpathEqual
Boolean xpathEqual(XdmValue left, XdmValue right)
-
xpathDeepEqual
Boolean xpathDeepEqual(XdmValue left, XdmValue right)
-
validateAsType
final XdmValue validateAsType(XdmValue value, SequenceType type, Map<String, NamespaceUri> inscopeNamespaces)
-
-
-
-