|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.Assertion
public class Assertion
An Assertion schema component (See XML Schema 1.1 Part 1 Working Draft)
Constructor Summary | |
---|---|
Assertion(SchemaAwareConfiguration config,
XPathExpression condition,
XPathVariable valueVariable,
java.lang.String text)
Create an Assertion component |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
equals() is used when deciding whether two assertions are equal, as part of the type subsumption algorithm. |
java.lang.String |
getBaseURI()
Get the base URI of the XPath expression |
XPathExpression |
getCondition()
Get the XPath expression representing the assertion. |
java.lang.String |
getConditionText()
Get the original text of the condition. |
java.lang.String |
getDefaultElementNamespace()
Get the default namesapce for elements and types from the static context of the XPath expression |
NamespaceResolver |
getNamespaceContext()
Get the namespace context for evaluating the XPath expression |
XPathVariable |
getValueVariable()
Get the variable bound to the name $value |
int |
hashCode()
Hashcode is used when deciding whether two assertions are equal, as part of the type subsumption algorithm. |
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component |
void |
setBaseURI(java.lang.String baseURI)
Set the base URI of the XPath expression. |
void |
setDefaultElementNamespace(java.lang.String namespace)
Set the default namespace for elements and types from the static context of the XPath expression |
void |
setNamespaceContext(NamespaceResolver resolver)
Set the namespace context. |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assertion(SchemaAwareConfiguration config, XPathExpression condition, XPathVariable valueVariable, java.lang.String text)
config
- the Saxon configurationcondition
- the compiled XPath expressionvalueVariable
- the variable to hold $value (may be null)text
- the original text of the XPath expressionMethod Detail |
---|
public XPathExpression getCondition()
public XPathVariable getValueVariable()
public java.lang.String getConditionText()
public void setDefaultElementNamespace(java.lang.String namespace)
namespace
- the default namespace for elements and types. The null namespace is represented as ""public java.lang.String getDefaultElementNamespace()
public void setNamespaceContext(NamespaceResolver resolver)
resolver
- defines the namespace contextpublic NamespaceResolver getNamespaceContext()
public void setBaseURI(java.lang.String baseURI)
baseURI
- the static base URI of the expressionpublic java.lang.String getBaseURI()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public void serialize(SchemaModelSerializer serializer) throws XPathException
serialize
in interface SerializableSchemaComponent
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |