public class XSAssertImpl extends AbstractXPath2EngineImpl implements XSAssert
Constructor and Description |
---|
XSAssertImpl(org.apache.xerces.xs.XSTypeDefinition type,
org.apache.xerces.xs.XSObjectList annotations,
XSDHandler schemaHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(XSAssertImpl pAssertion) |
org.apache.xerces.xs.XSObjectList |
getAnnotations()
A sequence of [annotations] or an empty
XSObjectList |
short |
getAssertKind() |
java.lang.String |
getAttrName() |
java.lang.String |
getAttrValue() |
org.eclipse.wst.xml.xpath2.processor.ast.XPath |
getCompiledXPathExpr() |
java.lang.String |
getMessage() |
java.lang.String |
getName()
The name of type
NCName , as defined in XML Namespaces, of
this declaration specified in the {name} property of the
component or null if the definition of this component
does not have a {name} property. |
java.lang.String |
getNamespace()
The [target namespace] of this object, or
null if it is
unspecified. |
org.apache.xerces.xs.XSNamespaceItem |
getNamespaceItem()
A namespace schema information item corresponding to the target
namespace of the component, if it is globally declared; or
null otherwise. |
XSDHandler |
getSchemaHandler() |
Test |
getTest()
[test]: an XPath 2.0 expression
|
java.lang.String |
getTestStr() |
short |
getType()
The
type of this object, i.e. |
org.apache.xerces.xs.XSTypeDefinition |
getTypeDefinition()
The type associated with the assertion
|
short |
getVariety() |
NamespaceSupport |
getXPath2NamespaceContext() |
java.lang.String |
getXPathDefaultNamespace() |
void |
setAnnotations(org.apache.xerces.xs.XSObjectList annotations) |
void |
setAssertKind(short assertKind)
Sets the kind of assertion this is.
|
void |
setAttrName(java.lang.String attrName) |
void |
setAttrValue(java.lang.String attrValue) |
void |
setCompiledExpr(org.eclipse.wst.xml.xpath2.processor.ast.XPath compiledXPathExpr) |
void |
setMessage(java.lang.String message) |
void |
setTest(Test expr,
org.w3c.dom.Element schemaContextElem) |
void |
setTypeDefinition(org.apache.xerces.xs.XSTypeDefinition typeDefn) |
void |
setVariety(short variety) |
void |
setXPath2NamespaceContext(NamespaceSupport namespaceContext) |
void |
setXPathDefaultNamespace(java.lang.String namespace) |
addNamespaceBindingToXPath2DynamicContext, compileXPathStr, evaluateXPathExpr, initXPath2DynamicContext
public XSAssertImpl(org.apache.xerces.xs.XSTypeDefinition type, org.apache.xerces.xs.XSObjectList annotations, XSDHandler schemaHandler)
public void setTest(Test expr, org.w3c.dom.Element schemaContextElem)
public void setCompiledExpr(org.eclipse.wst.xml.xpath2.processor.ast.XPath compiledXPathExpr)
public void setAnnotations(org.apache.xerces.xs.XSObjectList annotations)
public void setXPathDefaultNamespace(java.lang.String namespace)
public void setXPath2NamespaceContext(NamespaceSupport namespaceContext)
public void setAssertKind(short assertKind)
public void setAttrName(java.lang.String attrName)
public void setAttrValue(java.lang.String attrValue)
public void setTypeDefinition(org.apache.xerces.xs.XSTypeDefinition typeDefn)
public void setMessage(java.lang.String message)
public void setVariety(short variety)
public org.apache.xerces.xs.XSObjectList getAnnotations()
XSAssert
XSObjectList
getAnnotations
in interface XSAssert
public java.lang.String getTestStr()
public org.eclipse.wst.xml.xpath2.processor.ast.XPath getCompiledXPathExpr()
public Test getTest()
XSAssert
public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition()
XSAssert
getTypeDefinition
in interface XSAssert
public java.lang.String getXPathDefaultNamespace()
public java.lang.String getName()
org.apache.xerces.xs.XSObject
NCName
, as defined in XML Namespaces, of
this declaration specified in the {name}
property of the
component or null
if the definition of this component
does not have a {name}
property. For anonymous types,
the processor must construct and expose an anonymous type name that
is distinct from the name of every named type and the name of every
other anonymous type.getName
in interface org.apache.xerces.xs.XSObject
XSObject.getName()
public java.lang.String getNamespace()
org.apache.xerces.xs.XSObject
null
if it is
unspecified.getNamespace
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespace()
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObject
null
otherwise.getNamespaceItem
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespaceItem()
public short getType()
org.apache.xerces.xs.XSObject
type
of this object, i.e.
ELEMENT_DECLARATION
.getType
in interface org.apache.xerces.xs.XSObject
public java.lang.String getAttrName()
public java.lang.String getAttrValue()
public NamespaceSupport getXPath2NamespaceContext()
public java.lang.String getMessage()
public short getVariety()
public XSDHandler getSchemaHandler()
public short getAssertKind()
public boolean equals(XSAssertImpl pAssertion)
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.