Save This Page
Home » xmlbeans-2.4.0-src » org.apache.xmlbeans.impl.schema » [javadoc | source]
org.apache.xmlbeans.impl.schema
public class: StscChecker [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.impl.schema.StscChecker
Method from org.apache.xmlbeans.impl.schema.StscChecker Summary:
checkAll,   checkFields,   checkRestriction,   isParticleValidRestriction
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.impl.schema.StscChecker Detail:
 public static  void checkAll() 
 public static  void checkFields(SchemaTypeImpl sType) 
    The following code checks rule #5 of http://www.w3.org/TR/xmlschema-1/#coss-ct as well as attribute + element default/fixed validity.
 public static boolean checkRestriction(SchemaTypeImpl sType) 
    The following code only checks rule #5 of http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction (Everything else can and should be done in StscResolver, because we can give more detailed line # info there
 public static boolean isParticleValidRestriction(SchemaParticle baseModel,
    SchemaParticle derivedModel,
    Collection errors,
    XmlObject context) 
    This function takes in two schema particle types, a baseModel, and a derived model and returns true if the derivedModel can be egitimately be used for restriction. Errors are put into the errors collections.