|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.type.SchemaType
The base type for XML Schema types, such as complex types
and simple types.
Field Summary | |
static int |
ALL_DERIVATIONS
|
static int |
DERIVE_BY_EXTENSION
|
static int |
DERIVE_BY_LIST
|
static int |
DERIVE_BY_RESTRICTION
|
static int |
DERIVE_BY_SUBSTITUTION
|
static int |
DERIVE_BY_UNION
|
protected int |
finalProhibitions
Flags used to implement the "final" and "block" attributes |
protected static int |
INVALID
|
protected static int |
UNVALIDATED
|
protected static int |
VALIDATED
|
protected static int |
VALIDATING
|
protected int |
validationPhase
Flag used to check for cycles during validation |
Constructor Summary | |
SchemaType()
Default constructor |
Method Summary | |
boolean |
allowsDerivation(int derivation)
Determines whether derivation (of a particular kind) from this type is allowed, based on the "final" property |
void |
checkDerivation(SchemaType type,
int block)
Check that this type is validly derived from a given type |
boolean |
containingDeclarationIsElement()
|
SchemaType |
getBaseType()
Returns the base type that this type inherits from. |
int |
getBaseTypeFingerprint()
Get the fingerprint of the name of the base type of this type |
int |
getBlock()
Returns the value of the 'block' attribute for this type, as a bit-signnificant integer with fields such as DERIVE_BY_LIST and DERIVE_BY_EXTENSION |
int |
getColumnNumber()
Get the column number of the location where the type was defined. |
int |
getContainingDeclarationName()
|
int |
getDerivationMethod()
Gets the code of the derivation method used to derive this type from its parent. |
java.lang.String |
getDescription()
Get a description of this type for use in diagnostics |
java.lang.String |
getDisplayName()
|
int |
getFingerprint()
Get the fingerprint of the name of this type |
int |
getLineNumber()
Get the line number of the location where the type was defined |
java.lang.String |
getLocalName()
Returns the local name of this type (null if none was defined) |
NamePool |
getNamePool()
Get the NamePool in which this type is defined |
java.lang.String |
getPublicId()
Get the public ID of the location where the type was defined. |
java.lang.String |
getSystemId()
Get the system ID of the location where the type was defined |
abstract SequenceIterator |
getTypedValue(NodeInfo node)
Get the typed value of a node that is annotated with this schema type |
boolean |
isComplexType()
Returns true if this SchemaType is a ComplexType |
abstract boolean |
isSimpleType()
Returns true if this SchemaType is a SimpleType |
boolean |
isValidRestriction(SchemaType base,
SchemaMarker schema)
Determine whether this type is a valid restriction of another type |
void |
setBaseType(SchemaType baseType)
Sets the base type for this datatype |
void |
setBaseTypeFingerprint(int fingerprint)
Set the fingerprint of the name of the base type of this type |
void |
setContainingDeclaration(int fingerprint,
boolean isElement)
Set the name of the containing declaration (for diagnostics) |
void |
setDerivationMethod(int method)
Sets the derivation method code (without validating it) |
void |
setDerivationMethodName(java.lang.String method)
Sets the derivation method name |
void |
setFinal(int value)
Sets the value of the 'final' property, indicating which types of derivation are not allowed. |
void |
setFinalProhibitions(int finalValue)
Sets the value of the 'final' property, indicating which types of derivation are not allowed. |
void |
setFingerprint(int fingerprint)
Set the fingerprint of the name of this type |
void |
setLineNumber(int lineNumber)
|
void |
setLocalName(java.lang.String localName)
Sets the local name of this type |
void |
setLocator(javax.xml.transform.SourceLocator locator)
Set location information for diagnostics |
void |
setNamePool(NamePool pool)
Set the NamePool in which the type is defined |
void |
setSystemId(java.lang.String systemId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int finalProhibitions
public static final int DERIVE_BY_RESTRICTION
public static final int DERIVE_BY_EXTENSION
public static final int DERIVE_BY_UNION
public static final int DERIVE_BY_LIST
public static final int DERIVE_BY_SUBSTITUTION
public static final int ALL_DERIVATIONS
protected int validationPhase
protected static final int UNVALIDATED
protected static final int VALIDATING
protected static final int VALIDATED
protected static final int INVALID
Constructor Detail |
public SchemaType()
Method Detail |
public int getFingerprint()
public void setFingerprint(int fingerprint)
fingerprint
- the fingerprint allocated in the namepool for this schemapublic int getBaseTypeFingerprint()
public void setBaseTypeFingerprint(int fingerprint)
fingerprint
- the fingerprint allocated in the namepool for this schemapublic java.lang.String getLocalName()
public void setLocalName(java.lang.String localName)
localName
- local name of the typepublic java.lang.String getDisplayName()
public final boolean isComplexType()
public abstract boolean isSimpleType()
public int getBlock()
public NamePool getNamePool()
public void setNamePool(NamePool pool)
pool
- the NamePoolpublic SchemaType getBaseType()
public void setBaseType(SchemaType baseType) throws SchemaException
baseType
- the base type which this datatype inherits from
SchemaException
public int getDerivationMethod()
public boolean allowsDerivation(int derivation)
derivation
- the kind of derivation, e.g. DERIVE_BY_LIST
public void setDerivationMethodName(java.lang.String method) throws SchemaException
SchemaException
public void setDerivationMethod(int method)
public void setFinal(int value) throws SchemaException
value
- the value of the final property, as a bit-significant integer
SchemaException
- when the value is not a valid value.public void setFinalProhibitions(int finalValue)
finalValue
- the bit-significant code representing the final property.public void checkDerivation(SchemaType type, int block) throws SchemaException
SchemaException
public abstract SequenceIterator getTypedValue(NodeInfo node) throws XPathException
XPathException
public void setContainingDeclaration(int fingerprint, boolean isElement)
public void setLocator(javax.xml.transform.SourceLocator locator)
public void setSystemId(java.lang.String systemId)
public void setLineNumber(int lineNumber)
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
public java.lang.String getDescription()
public int getContainingDeclarationName()
public boolean containingDeclarationIsElement()
public boolean isValidRestriction(SchemaType base, SchemaMarker schema) throws SchemaException
SchemaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |