Package com.saxonica.ee.schema
Class Notation
java.lang.Object
com.saxonica.ee.schema.SchemaStructure
com.saxonica.ee.schema.Notation
- All Implemented Interfaces:
SerializableSchemaComponent,UserSchemaComponent,SourceLocator,Location,SchemaComponent,Locator
public class Notation
extends SchemaStructure
implements UserSchemaComponent, SerializableSchemaComponent
A Notation Declaration Schema Component
-
Constructor Summary
ConstructorsConstructorDescriptionNotation(EnterpriseConfiguration config, SourceLocator locator) Creates a new Notation -
Method Summary
Modifier and TypeMethodDescriptionvoidelaborate(SchemaCompiler compiler) Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes.booleanfixup(SchemaCompiler compiler) Check references from this component to other componentsGet the schema component in the form of a function item.getName()Return the local name of this Notation.Get the notation nameGet the public identifier of the notationGet the system identifier of the notationReturn the target namespace of this NotationbooleanisSameDeclaration(Notation other) Test whether this is the same notation as another.voidserialize(SchemaModelSerializer serializer) Serialize the schema componentvoidsetNotationName(StructuredQName nameCode) Set the name code of the notationvoidsetNotationPublicId(String publicId) Set the public identifier of the notationvoidsetNotationSystemId(String systemId) Set the system identifier of the notationbooleanvalidate(SchemaCompiler compiler) Checks the validity of this Notation.Methods inherited from class com.saxonica.ee.schema.SchemaStructure
getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, isValidationNeeded, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.type.SchemaComponent
getRedefinitionLevel, getValidationStatusMethods inherited from interface com.saxonica.ee.schema.UserSchemaComponent
lookForCycles
-
Constructor Details
-
Notation
Creates a new Notation- Parameters:
config- the Configuration to which this Notation belongslocator- the location of the declaration in the schema document
-
-
Method Details
-
setNotationName
Set the name code of the notation- Parameters:
nameCode- the NamePool code for the notation name
-
getNotationName
Get the notation name- Returns:
- the name of the notation as a NamePool fingerprint. This combines the values of the {name} and {target namespace} properties in the schema component model.
-
setNotationSystemId
Set the system identifier of the notation- Parameters:
systemId- the system identifier (possibly null)\
-
setNotationPublicId
Set the public identifier of the notation- Parameters:
publicId- the public identifier (possibly null)\
-
getNotationSystemId
Get the system identifier of the notation- Returns:
- the value of the {system identifier} property (possibly null).
-
getNotationPublicId
Get the public identifier of the notation- Returns:
- the value of the {public identifier} property (possibly null)\
-
getName
Return the local name of this Notation.- Returns:
- the value of the {local name} property of the Notation Declaration
-
getTargetNamespace
Return the target namespace of this Notation- Returns:
- the value of the {target namespace} property of the Notation Declaration
-
validate
Checks the validity of this Notation. Always returns true for this implementation.- Specified by:
validatein interfaceUserSchemaComponent- Overrides:
validatein classSchemaStructure- Parameters:
compiler- the schema compiler- Returns:
- true when this Schema definition is valid, otherwise false.
-
fixup
Check references from this component to other components- Specified by:
fixupin interfaceUserSchemaComponent- Overrides:
fixupin classSchemaStructure- Parameters:
compiler- the schema compiler- Returns:
- true if all is well, false if errors found
-
isSameDeclaration
Test whether this is the same notation as another. They are considered to be the same component if they are derived from the same definition in the original XML representation (which can happen when there are multiple includes of the same file)- Parameters:
other- the notation declaration that we are comparing with- Returns:
- true if the two notation declarations are identical
-
elaborate
Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes. The model is assumed to be valid.- Specified by:
elaboratein interfaceUserSchemaComponent- Overrides:
elaboratein classSchemaStructure- Parameters:
compiler- The schema compiler
-
serialize
Serialize the schema component- Specified by:
serializein interfaceSerializableSchemaComponent- Parameters:
serializer- the object responsible for performing the serialization- Throws:
XPathException- if serialization fails
-
getComponentAsFunction
Description copied from interface:SchemaComponentGet the schema component in the form of a function item. This allows schema information to be made visible to XSLT or XQuery code. The function makes available the contents of the schema component as defined in the XSD specification. The function takes a string as argument representing a property name, and returns the corresponding property of the schema component. There is also a property "class" which returns the kind of schema component, for example "Attribute Declaration".- Specified by:
getComponentAsFunctionin interfaceSchemaComponent- Overrides:
getComponentAsFunctionin classSchemaStructure- Returns:
- the schema component represented as a function from property names to property values.
-