/** * Implements * <code>Validation Rule: Schema-Validity Assessment (Element) 1.2.1.2.4</code> */ private static boolean isSubstitutable( XSType _base, XSType derived ) { // too ugly to the point that it's almost unbearable. // I mean, it's not even transitive. Thus we end up calling this method // for each candidate if( _base.isComplexType() ) { XSComplexType base = _base.asComplexType(); for( ; base!=derived; derived=derived.getBaseType() ) { if( base.isSubstitutionProhibited( derived.getDerivationMethod() ) ) return false; // Type Derivation OK (Complex)-1 } return true; } else { // simple type don't have any @block return true; } }
/** * Implements * <code>Validation Rule: Schema-Validity Assessment (Element) 1.2.1.2.4</code> */ private static boolean isSubstitutable( XSType _base, XSType derived ) { // too ugly to the point that it's almost unbearable. // I mean, it's not even transitive. Thus we end up calling this method // for each candidate if( _base.isComplexType() ) { XSComplexType base = _base.asComplexType(); for( ; base!=derived; derived=derived.getBaseType() ) { if( base.isSubstitutionProhibited( derived.getDerivationMethod() ) ) return false; // Type Derivation OK (Complex)-1 } return true; } else { // simple type don't have any @block return true; } }
/** * Implements * <code>Validation Rule: Schema-Validity Assessment (Element) 1.2.1.2.4</code> */ private static boolean isSubstitutable( XSType _base, XSType derived ) { // too ugly to the point that it's almost unbearable. // I mean, it's not even transitive. Thus we end up calling this method // for each candidate if( _base.isComplexType() ) { XSComplexType base = _base.asComplexType(); for( ; base!=derived; derived=derived.getBaseType() ) { if( base.isSubstitutionProhibited( derived.getDerivationMethod() ) ) return false; // Type Derivation OK (Complex)-1 } return true; } else { // simple type don't have any @block return true; } }
/** * Implements * <code>Validation Rule: Schema-Validity Assessment (Element) 1.2.1.2.4</code> */ private static boolean isSubstitutable( XSType _base, XSType derived ) { // too ugly to the point that it's almost unbearable. // I mean, it's not even transitive. Thus we end up calling this method // for each candidate if( _base.isComplexType() ) { XSComplexType base = _base.asComplexType(); for( ; base!=derived; derived=derived.getBaseType() ) { if( base.isSubstitutionProhibited( derived.getDerivationMethod() ) ) return false; // Type Derivation OK (Complex)-1 } return true; } else { // simple type don't have any @block return true; } }
/** * Implements * <code>Validation Rule: Schema-Validity Assessment (Element) 1.2.1.2.4</code> */ private static boolean isSubstitutable( XSType _base, XSType derived ) { // too ugly to the point that it's almost unbearable. // I mean, it's not even transitive. Thus we end up calling this method // for each candidate if( _base.isComplexType() ) { XSComplexType base = _base.asComplexType(); for( ; base!=derived; derived=derived.getBaseType() ) { if( base.isSubstitutionProhibited( derived.getDerivationMethod() ) ) return false; // Type Derivation OK (Complex)-1 } return true; } else { // simple type don't have any @block return true; } }
if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; else eused = true;
if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; else eused = true;
if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; else eused = true;
if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; else eused = true;
if(type.getDerivationMethod()==XSType.RESTRICTION) rused = true; else eused = true;