public class GlobalParameterSet extends Object
Constructor and Description |
---|
GlobalParameterSet()
Create an empty 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 a Sequence object
|
Object |
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,
Object value)
Add a parameter to the ParameterSet
|
public void put(StructuredQName qName, Object value)
qName
- The fingerprint of the parameter name.value
- The value of the parameter, or null if the parameter is to be removedpublic Object 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-2013 Saxonica Limited. All rights reserved.