public class Notation extends SchemaStructure implements UserSchemaComponent, SerializableSchemaComponent
COMPONENT_FUNCTION_TYPE, FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
Constructor and Description |
---|
Notation(EnterpriseConfiguration config,
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
|
FunctionItem |
getComponentAsFunction()
Get the schema component in the form of a function item.
|
int |
getFingerprint()
Get the notation name
|
String |
getName()
Return the local name of this Notation.
|
String |
getNotationPublicId()
Get the public identifier of the notation
|
String |
getNotationSystemId()
Get the system identifier of the notation
|
String |
getTargetNamespace()
Return the target namespace of this Notation
|
void |
serialize(SchemaModelSerializer serializer)
Serialize the schema component
|
void |
setNameCode(int nameCode)
Set the name code of the notation
|
void |
setNotationPublicId(String publicId)
Set the public identifier of the notation
|
void |
setNotationSystemId(String systemId)
Set the system identifier of the notation
|
boolean |
validate(SchemaCompiler compiler)
Checks the validity of this Notation.
|
getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, makeXPathExpressionPropertyRecord, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lookForCycles
getRedefinitionLevel, getValidationStatus
public Notation(EnterpriseConfiguration config, SourceLocator locator)
config
- the Configuration to which this Notation belongslocator
- the location of the declaration in the schema documentpublic void setNameCode(int nameCode)
nameCode
- the NamePool code for the notation namepublic int getFingerprint()
public void setNotationSystemId(String systemId)
systemId
- the system identifier (possibly null)\public void setNotationPublicId(String publicId)
publicId
- the public identifier (possibly null)\public String getNotationSystemId()
public String getNotationPublicId()
public String getName()
public 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 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 serializationXPathException
- if serialization failspublic FunctionItem getComponentAsFunction()
SchemaComponent
getComponentAsFunction
in interface SchemaComponent
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.