|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.SchemaStructure com.saxonica.schema.TypeAlternative
public class TypeAlternative
A TypeAlternative schema component (See XML Schema 1.1 Part 1 Working Draft)
Constructor Summary | |
---|---|
TypeAlternative(EnterpriseConfiguration config,
XPathExpression condition,
String text)
Create an TypeAlternative component |
Method Summary | |
---|---|
boolean |
fixup(SchemaCompiler compiler)
Fixup references from this schema component to others |
String |
getBaseURI()
Get the base URI of the XPath expression |
XPathExpression |
getCondition()
Get the XPath expression used in the test attribute of the alternative. |
String |
getConditionText()
Get the original text of the condition. |
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 |
SchemaType |
getSchemaType()
Get the fixed-up schema type for this alternative |
TypeReference |
getTypeReference()
Get the type reference for this alternative |
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component |
void |
setBaseURI(String baseURI)
Set the base URI of the XPath expression. |
void |
setDefaultElementNamespace(String namespace)
Set the default namesapce for elements and types from the static context of the XPath expression |
void |
setNamespaceContext(NamespaceResolver resolver)
Set the namespace context. |
void |
setTypeReference(TypeReference type)
Set the type reference for this alternative |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
elaborate, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeAlternative(EnterpriseConfiguration config, XPathExpression condition, String text)
config
- the Saxon configurationcondition
- the compiled XPath expression. May be null if no condition was specified (this
is allowed on the last alternative)text
- the original text of the XPath expression. May be null if no condition was specified (this
is allowed on the last alternative)Method Detail |
---|
public XPathExpression getCondition()
public String getConditionText()
public void setDefaultElementNamespace(String namespace)
namespace
- the default namespace for elements and types. The null namespace is represented as ""public String getDefaultElementNamespace()
public void setNamespaceContext(NamespaceResolver resolver)
resolver
- defines the namespace contextpublic NamespaceResolver getNamespaceContext()
public void setBaseURI(String baseURI)
baseURI
- the static base URI of the expressionpublic String getBaseURI()
public void setTypeReference(TypeReference type)
type
- a reference to the type selected by this alternativepublic TypeReference getTypeReference()
public SchemaType getSchemaType()
public boolean fixup(SchemaCompiler compiler) throws SchemaException
fixup
in class SchemaStructure
compiler
- the SchemaCompiler, used primarily for reporting errors
SchemaException
public void serialize(SchemaModelSerializer serializer) throws XPathException
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |