StaticContext
RootStaticContextImpl
public class StaticContextImpl extends Object implements StaticContext
StaticContext.BoundarySpaceProperty, StaticContext.ConstructionModeProperty, StaticContext.CopyNamespacesModeProperty, StaticContext.EmptyOrderProperty, StaticContext.OrderingModeProperty
Modifier and Type | Field | Description |
---|---|---|
protected Map<QName,AttributeType> |
attributeDeclarationMap |
|
protected Map<String,Collation> |
collationMap |
|
protected Map<String,SequenceType> |
collectionTypeMap |
|
protected Map<String,SequenceType> |
documentTypeMap |
|
protected Map<QName,ElementType> |
elementDeclarationMap |
|
protected Map<QName,Function[]> |
functionMap |
|
protected List<org.apache.commons.lang3.tuple.Pair<String,List<String>>> |
moduleImports |
|
protected Map<QName,String> |
options |
|
protected List<org.apache.commons.lang3.tuple.Pair<String,List<String>>> |
schemaImports |
|
protected Map<QName,SchemaType> |
schemaTypeMap |
|
protected List<SequenceType> |
sequenceTypeList |
|
protected Map<SequenceType,Integer> |
sequenceTypeMap |
Constructor | Description |
---|---|
StaticContextImpl(StaticContext parent) |
protected final Map<String,SequenceType> documentTypeMap
protected final Map<String,SequenceType> collectionTypeMap
protected final List<org.apache.commons.lang3.tuple.Pair<String,List<String>>> moduleImports
protected final List<org.apache.commons.lang3.tuple.Pair<String,List<String>>> schemaImports
protected final Map<QName,SchemaType> schemaTypeMap
protected final Map<SequenceType,Integer> sequenceTypeMap
protected final List<SequenceType> sequenceTypeList
protected final Map<QName,AttributeType> attributeDeclarationMap
protected final Map<QName,ElementType> elementDeclarationMap
public StaticContextImpl(StaticContext parent)
public StaticContext getParent()
getParent
in interface StaticContext
public String lookupNamespaceUri(String prefix)
lookupNamespaceUri
in interface StaticContext
public void registerNamespaceUri(String prefix, String uri)
registerNamespaceUri
in interface StaticContext
public Collation lookupCollation(String collationName)
lookupCollation
in interface StaticContext
public void registerCollation(String collationName, Collation collation)
registerCollation
in interface StaticContext
public Function lookupFunction(QName functionName, int arity)
lookupFunction
in interface StaticContext
public Function[] lookupFunctions(QName functionName)
lookupFunctions
in interface StaticContext
public void registerFunction(Function function)
registerFunction
in interface StaticContext
public Iterator<Function> listFunctions()
listFunctions
in interface StaticContext
public SequenceType lookupDocumentType(String docUri)
lookupDocumentType
in interface StaticContext
public void registerDocumentType(String docUri, SequenceType type)
registerDocumentType
in interface StaticContext
public XQueryVariable lookupVariable(QName name)
lookupVariable
in interface StaticContext
public void registerVariable(XQueryVariable var)
registerVariable
in interface StaticContext
public Iterator<XQueryVariable> listVariables()
listVariables
in interface StaticContext
public SequenceType lookupCollectionType(String collectionUri)
lookupCollectionType
in interface StaticContext
public void registerCollectionType(String collectionUri, SequenceType type)
registerCollectionType
in interface StaticContext
public Iterator<org.apache.commons.lang3.tuple.Pair<String,List<String>>> listModules()
listModules
in interface StaticContext
public void registerModuleImport(String uri, List<String> locations)
registerModuleImport
in interface StaticContext
public Iterator<org.apache.commons.lang3.tuple.Pair<String,List<String>>> listSchemas()
listSchemas
in interface StaticContext
public void registerSchemaImport(String uri, List<String> locations)
registerSchemaImport
in interface StaticContext
public SchemaType lookupSchemaType(QName name)
lookupSchemaType
in interface StaticContext
public void registerSchemaType(QName name, SchemaType type)
registerSchemaType
in interface StaticContext
public int lookupSequenceType(SequenceType type)
lookupSequenceType
in interface StaticContext
public SequenceType lookupSequenceType(int code)
lookupSequenceType
in interface StaticContext
public int encodeSequenceType(SequenceType type)
encodeSequenceType
in interface StaticContext
public int getMaxSequenceTypeCode()
getMaxSequenceTypeCode
in interface StaticContext
public AttributeType lookupAttributeDeclaration(QName name)
lookupAttributeDeclaration
in interface StaticContext
public void registerAttributeDeclaration(QName name, AttributeType attrDecl)
registerAttributeDeclaration
in interface StaticContext
public ElementType lookupElementDeclaration(QName name)
lookupElementDeclaration
in interface StaticContext
public void registerElementDeclaration(QName name, ElementType elemDecl)
registerElementDeclaration
in interface StaticContext
public StaticContext.BoundarySpaceProperty getBoundarySpaceProperty()
getBoundarySpaceProperty
in interface StaticContext
public void setBoundarySpaceProperty(StaticContext.BoundarySpaceProperty boundarySpaceProperty)
setBoundarySpaceProperty
in interface StaticContext
public String getDefaultFunctionNamespaceUri()
getDefaultFunctionNamespaceUri
in interface StaticContext
public void setDefaultFunctionNamespaceUri(String uri)
setDefaultFunctionNamespaceUri
in interface StaticContext
public String getDefaultElementNamespaceUri()
getDefaultElementNamespaceUri
in interface StaticContext
public void setDefaultElementNamespaceUri(String uri)
setDefaultElementNamespaceUri
in interface StaticContext
public StaticContext.OrderingModeProperty getOrderingModeProperty()
getOrderingModeProperty
in interface StaticContext
public void setOrderingModeProperty(StaticContext.OrderingModeProperty orderingMode)
setOrderingModeProperty
in interface StaticContext
public StaticContext.EmptyOrderProperty getEmptyOrderProperty()
getEmptyOrderProperty
in interface StaticContext
public void setEmptyOrderProperty(StaticContext.EmptyOrderProperty emptyOrder)
setEmptyOrderProperty
in interface StaticContext
public String getDefaultCollation()
getDefaultCollation
in interface StaticContext
public void setDefaultCollation(String defaultCollation)
setDefaultCollation
in interface StaticContext
public String getBaseUri()
getBaseUri
in interface StaticContext
public void setBaseUri(String baseUri)
setBaseUri
in interface StaticContext
public StaticContext.ConstructionModeProperty getConstructionModeProperty()
getConstructionModeProperty
in interface StaticContext
public void setConstructionModeProperty(StaticContext.ConstructionModeProperty constructionMode)
setConstructionModeProperty
in interface StaticContext
public StaticContext.CopyNamespacesModeProperty getCopyNamespacesModeProperty()
getCopyNamespacesModeProperty
in interface StaticContext
public void setCopyNamespacesModeProperty(StaticContext.CopyNamespacesModeProperty copyNamespacesMode)
setCopyNamespacesModeProperty
in interface StaticContext
public SequenceType getDefaultCollectionType()
getDefaultCollectionType
in interface StaticContext
public void setDefaultCollectionType(SequenceType type)
setDefaultCollectionType
in interface StaticContext
public void setOption(QName name, String value)
setOption
in interface StaticContext
public String getOption(QName name)
getOption
in interface StaticContext
public IStaticContextFactory createFactory()
createFactory
in interface StaticContext
Copyright © 2019 Apache Software Foundation. All rights reserved.