public class GlobalParameterSet
extends java.lang.Object
Constructor and Description |
---|
GlobalParameterSet()
Create an empty parameter set
|
GlobalParameterSet(GlobalParameterSet parameterSet)
Create a parameter set as a copy of an existing parameter set
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all values
|
boolean |
containsKey(StructuredQName qName) |
Sequence |
convertParameterValue(StructuredQName qName,
SequenceType requiredType,
boolean convert,
XPathContext context)
Get the value of a parameter, converted to the required type, or checked against the
required type if no type conversion is in force
|
Sequence |
get(StructuredQName qName)
Get a parameter
|
java.util.Collection<StructuredQName> |
getKeys()
Get all the keys that have been allocated
|
int |
getNumberOfKeys()
Get the number of entries in the result of getKeys() that are significant
|
void |
put(StructuredQName qName,
Sequence value)
Add a parameter to the ParameterSet
|
public GlobalParameterSet()
public GlobalParameterSet(GlobalParameterSet parameterSet)
parameterSet
- the parameter set to be copiedpublic void put(StructuredQName qName, Sequence value)
qName
- The fingerprint of the parameter name.value
- The value of the parameter, or null if the parameter is to be removedpublic Sequence get(StructuredQName qName)
qName
- The parameter name.public boolean containsKey(StructuredQName qName)
public Sequence convertParameterValue(StructuredQName qName, SequenceType requiredType, boolean convert, XPathContext context) throws XPathException
qName
- the name of the parameterrequiredType
- the required type of the parameterconvert
- set to true if function conversion rules are to be applied, or to false if the value
is simply to be checked against the required typecontext
- dynamic evaluation contextXPathException
- if the value is of the wrong typepublic void clear()
public java.util.Collection<StructuredQName> getKeys()
public int getNumberOfKeys()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.