public class GlobalParameterSet extends 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
|
Sequence |
get(StructuredQName qName)
Get a parameter
|
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 Collection<StructuredQName> getKeys()
public int getNumberOfKeys()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.