| java.lang.Object org.apache.xerces.impl.xs.XSConstraints
XSConstraints | public class XSConstraints (Code) | | Constraints shared by traversers and validator
author: Sandy Gao, IBM version: $Id: XSConstraints.java 573322 2007-09-06 16:48:47Z peterjm $ |
Method Summary | |
public static Object | ElementDefaultValidImmediate(XSTypeDefinition type, String value, ValidationContext context, ValidatedInfo vinfo) | public static boolean | checkComplexDerivationOk(XSComplexTypeDecl derived, XSTypeDefinition base, short block) check whether complex type derived is valid derived from base,
given a subset of {restriction, extension}. | public static void | checkElementDeclsConsistent(XSComplexTypeDecl type, XSParticleDecl particle, SymbolHash elemDeclHash, SubstitutionGroupHandler sgHandler) | public static boolean | checkSimpleDerivationOk(XSSimpleType derived, XSTypeDefinition base, short block) check whether simple type derived is valid derived from base,
given a subset of {restriction, extension}. | public static boolean | checkTypeDerivationOk(XSTypeDefinition derived, XSTypeDefinition base, short block) | public static void | findElemInTable(XSComplexTypeDecl type, XSElementDecl elem, SymbolHash elemDeclHash) | public static void | fullSchemaChecking(XSGrammarBucket grammarBucket, SubstitutionGroupHandler SGHandler, CMBuilder cmBuilder, XMLErrorReporter errorReporter) used to check the 3 constraints against each complex type
(should be each model group):
Unique Particle Attribution, Particle Derivation (Restriction),
Element Declrations Consistent. | public static boolean | overlapUPA(XSElementDecl element1, XSElementDecl element2, SubstitutionGroupHandler sgHandler) | public static boolean | overlapUPA(XSElementDecl element, XSWildcardDecl wildcard, SubstitutionGroupHandler sgHandler) | public static boolean | overlapUPA(XSWildcardDecl wildcard1, XSWildcardDecl wildcard2) | public static boolean | overlapUPA(Object decl1, Object decl2, SubstitutionGroupHandler sgHandler) | static void | reportSchemaError(XMLErrorReporter errorReporter, SimpleLocator loc, String key, Object[] args) |
OCCURRENCE_UNKNOWN | final static int OCCURRENCE_UNKNOWN(Code) | | |
ElementDefaultValidImmediate | public static Object ElementDefaultValidImmediate(XSTypeDefinition type, String value, ValidationContext context, ValidatedInfo vinfo)(Code) | | check whether a value is a valid default for some type
returns the compiled form of the value
The parameter value could be either a String or a ValidatedInfo object
|
checkComplexDerivationOk | public static boolean checkComplexDerivationOk(XSComplexTypeDecl derived, XSTypeDefinition base, short block)(Code) | | check whether complex type derived is valid derived from base,
given a subset of {restriction, extension}.
|
checkSimpleDerivationOk | public static boolean checkSimpleDerivationOk(XSSimpleType derived, XSTypeDefinition base, short block)(Code) | | check whether simple type derived is valid derived from base,
given a subset of {restriction, extension}.
|
checkTypeDerivationOk | public static boolean checkTypeDerivationOk(XSTypeDefinition derived, XSTypeDefinition base, short block)(Code) | | check whether derived is valid derived from base, given a subset
of {restriction, extension}.B
|
fullSchemaChecking | public static void fullSchemaChecking(XSGrammarBucket grammarBucket, SubstitutionGroupHandler SGHandler, CMBuilder cmBuilder, XMLErrorReporter errorReporter)(Code) | | used to check the 3 constraints against each complex type
(should be each model group):
Unique Particle Attribution, Particle Derivation (Restriction),
Element Declrations Consistent.
|
|
|