public class Notation extends SchemaStructure implements UserSchemaComponent, SerializableSchemaComponent
COMPONENT_FUNCTION_TYPE, FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
Constructor and Description |
---|
Notation(EnterpriseConfiguration config,
javax.xml.transform.SourceLocator locator)
Creates a new Notation
|
Modifier and Type | Method and Description |
---|---|
void |
elaborate(SchemaCompiler compiler)
Elaborate the schema component: after reloading a serialized schema component model,
this expands the component with derived information needed during validation episodes.
|
boolean |
fixup(SchemaCompiler compiler)
Check references from this component to other components
|
Function |
getComponentAsFunction()
Get the schema component in the form of a function item.
|
java.lang.String |
getName()
Return the local name of this Notation.
|
StructuredQName |
getNotationName()
Get the notation name
|
java.lang.String |
getNotationPublicId()
Get the public identifier of the notation
|
java.lang.String |
getNotationSystemId()
Get the system identifier of the notation
|
java.lang.String |
getTargetNamespace()
Return the target namespace of this Notation
|
boolean |
isSameDeclaration(Notation other)
Test whether this is the same notation as another.
|
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component
|
void |
setNotationName(StructuredQName nameCode)
Set the name code of the notation
|
void |
setNotationPublicId(java.lang.String publicId)
Set the public identifier of the notation
|
void |
setNotationSystemId(java.lang.String systemId)
Set the system identifier of the notation
|
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Notation.
|
getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lookForCycles
getRedefinitionLevel, getValidationStatus
public Notation(EnterpriseConfiguration config, javax.xml.transform.SourceLocator locator)
config
- the Configuration to which this Notation belongslocator
- the location of the declaration in the schema documentpublic void setNotationName(StructuredQName nameCode)
nameCode
- the NamePool code for the notation namepublic StructuredQName getNotationName()
public void setNotationSystemId(java.lang.String systemId)
systemId
- the system identifier (possibly null)\public void setNotationPublicId(java.lang.String publicId)
publicId
- the public identifier (possibly null)\public java.lang.String getNotationSystemId()
public java.lang.String getNotationPublicId()
public java.lang.String getName()
public java.lang.String getTargetNamespace()
public boolean validate(SchemaCompiler compiler)
validate
in interface UserSchemaComponent
public boolean fixup(SchemaCompiler compiler) throws SchemaException
fixup
in interface UserSchemaComponent
fixup
in class SchemaStructure
compiler
- the schema compilerSchemaException
public boolean isSameDeclaration(Notation other)
other
- the notation declaration that we are comparing withpublic void elaborate(SchemaCompiler compiler)
elaborate
in interface UserSchemaComponent
elaborate
in class SchemaStructure
compiler
- The schema compilerpublic void serialize(SchemaModelSerializer serializer) throws XPathException
serialize
in interface SerializableSchemaComponent
serializer
- the object responsible for performing the serializationMissingComponentException
- if the component cannot be serialized because it contains dangling referencesXPathException
- if serialization failspublic Function getComponentAsFunction()
SchemaComponent
getComponentAsFunction
in interface SchemaComponent
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.