public class ContextItemStaticInfo extends Object
Modifier and Type | Field and Description |
---|---|
static ContextItemStaticInfo |
ABSENT |
static ContextItemStaticInfo |
DEFAULT
Default information when nothing else is known
|
Constructor and Description |
---|
ContextItemStaticInfo(ItemType itemType,
boolean maybeUndefined)
Create a ContextItemStaticInfo
|
ContextItemStaticInfo(ItemType itemType,
boolean maybeUndefined,
boolean isStriding)
Create a ContextItemStaticInfo
|
ContextItemStaticInfo(ItemType itemType,
boolean maybeUndefined,
Expression contextSettingExpression)
Create a ContextItemStaticInfo
|
ContextItemStaticInfo(ItemType itemType,
boolean maybeUndefined,
Posture contextItemPosture)
Create a ContextItemStaticInfo
|
Modifier and Type | Method and Description |
---|---|
Posture |
getContextItemPosture()
Get the context item posture
|
ItemType |
getItemType()
Get the static type of the context item.
|
boolean |
isPossiblyAbsent()
Ask whether it is possible that the context item is absent
|
void |
setContextPostureStriding() |
public static final ContextItemStaticInfo DEFAULT
public static final ContextItemStaticInfo ABSENT
public ContextItemStaticInfo(ItemType itemType, boolean maybeUndefined)
itemType
- the item type of the context item. If the context item is absent, set this to
ErrorType.getInstance()
.maybeUndefined
- set to true if it is possible (or certain) that the context item will be absent.public ContextItemStaticInfo(ItemType itemType, boolean maybeUndefined, Expression contextSettingExpression)
itemType
- the item type of the context item. If the context item is absent, set this to
ErrorType.getInstance()
.maybeUndefined
- set to true if it is possible (or certain) that the context item will be absent.contextSettingExpression
- The expression that controls the context item.public ContextItemStaticInfo(ItemType itemType, boolean maybeUndefined, boolean isStriding)
itemType
- the item type of the context item. If the context item is absent, set this to
ErrorType.getInstance()
.maybeUndefined
- set to true if it is possible (or certain) that the context item will be absent.isStriding
- True if the explicit posture is Striding (otherwise Roaming).public ContextItemStaticInfo(ItemType itemType, boolean maybeUndefined, Posture contextItemPosture)
itemType
- the item type of the context item. If the context item is absent, set this to
ErrorType.getInstance()
.maybeUndefined
- set to true if it is possible (or certain) that the context item will be absent.contextItemPosture
- the context item posture.public void setContextPostureStriding()
public ItemType getItemType()
public boolean isPossiblyAbsent()
public Posture getContextItemPosture()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.