org.apache.xerces.impl.xs
Class XSConstraints

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.XSConstraints

public class XSConstraints
extends java.lang.Object

Constaints shared by traversers and validator

Version:
$Id: XSConstraints.java,v 1.1 2001/10/25 20:36:02 elena Exp $
Author:
Sandy Gao, IBM

Constructor Summary
XSConstraints()
           
 
Method Summary
static boolean checkComplexDerivationOk(XSComplexTypeDecl derived, XSTypeDecl base, int block)
          check whether complex type derived is valid derived from base, given a subset of {restriction, extension}.
static boolean checkSimpleDerivationOk(DatatypeValidator derived, XSTypeDecl base, int block)
          check whether simple type derived is valid derived from base, given a subset of {restriction, extension}.
static boolean checkTypeDerivationOk(XSTypeDecl derived, XSTypeDecl base, int block)
          check whether derived is valid derived from base, given a subset of {restriction, extension}.
static boolean ElementDefaultValidImmediate(XSTypeDecl type, java.lang.String value)
          check whether a value is a valid default for some type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSConstraints

public XSConstraints()
Method Detail

checkTypeDerivationOk

public static boolean checkTypeDerivationOk(XSTypeDecl derived,
                                            XSTypeDecl base,
                                            int block)
check whether derived is valid derived from base, given a subset of {restriction, extension}.

checkSimpleDerivationOk

public static boolean checkSimpleDerivationOk(DatatypeValidator derived,
                                              XSTypeDecl base,
                                              int block)
check whether simple type derived is valid derived from base, given a subset of {restriction, extension}.

checkComplexDerivationOk

public static boolean checkComplexDerivationOk(XSComplexTypeDecl derived,
                                               XSTypeDecl base,
                                               int block)
check whether complex type derived is valid derived from base, given a subset of {restriction, extension}.

ElementDefaultValidImmediate

public static boolean ElementDefaultValidImmediate(XSTypeDecl type,
                                                   java.lang.String value)
check whether a value is a valid default for some type


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.