public class GlobalContextRequirement
extends java.lang.Object
Constructor and Description |
---|
GlobalContextRequirement() |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredItemType(ItemType requiredItemType)
Specify the required item type of the context item
|
void |
export(ExpressionPresenter out)
Export the global context item declaration to an SEF export file
|
Expression |
getDefaultValue()
Get the expression that supplies the default value of the context item, if any.
|
ItemType |
getRequiredItemType()
Get the required item type of the context item.
|
java.util.List<ItemType> |
getRequiredItemTypes()
Get all the required item types.
|
boolean |
isAbsentFocus()
Ask whether the global context item for a query or stylesheet will be absent.
|
boolean |
isExternal()
Ask whether (in XQuery) the global context item is declared as external
|
boolean |
isMayBeOmitted()
Ask whether it is OK for the application to supply no context item
|
void |
setAbsentFocus(boolean absent)
Say whether the global context item for a query or stylesheet will be absent.
|
void |
setDefaultValue(Expression defaultValue)
Set the expression used to compute the default value of the global context item
|
void |
setExternal(boolean external)
Say whether (in XQuery) the global context item is declared as external
|
void |
setMayBeOmitted(boolean mayOmit)
Say whether it is OK for the application to supply no context item
|
public ItemType getRequiredItemType()
public java.util.List<ItemType> getRequiredItemTypes()
public void addRequiredItemType(ItemType requiredItemType)
requiredItemType
- the required item typepublic Expression getDefaultValue()
public void setDefaultValue(Expression defaultValue)
defaultValue
- the expression used to compute the default value.public void export(ExpressionPresenter out) throws XPathException
out
- the export destinationXPathException
- if things go wrongpublic void setAbsentFocus(boolean absent)
absent
- true if there will be no context item (externally or internally supplied).public boolean isAbsentFocus()
public void setMayBeOmitted(boolean mayOmit)
mayOmit
- true if it is OK for the application to supply to context itempublic boolean isMayBeOmitted()
public void setExternal(boolean external)
external
- true if the global context item is declared as externalpublic boolean isExternal()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.