final public DataTypeWithFacet getFacetObject( String facetName ) { if(this.facetName.equals(facetName)) return this; else return baseType.getFacetObject(facetName); }
final public DataTypeWithFacet getFacetObject( String facetName ) { if(this.facetName.equals(facetName)) return this; else return baseType.getFacetObject(facetName); }
final public DataTypeWithFacet getFacetObject( String facetName ) { if(this.facetName.equals(facetName)) return this; else return baseType.getFacetObject(facetName); }
final public DataTypeWithFacet getFacetObject( String facetName ) { if(this.facetName.equals(facetName)) return this; else return baseType.getFacetObject(facetName); }
protected LengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _length, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_LENGTH,_isFixed); length = _length; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_LENGTH); if(o!=null && ((LengthFacet)o).length != this.length ) throw new DatatypeException( localize(ERR_LOOSENED_FACET, FACET_LENGTH, o.displayName() ) ); // consistency with minLength/maxLength is checked in XSDatatypeImpl.derive method. }
public FractionDigitsFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _scale, boolean _isFixed ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_FRACTIONDIGITS, _isFixed ); scale = _scale; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_FRACTIONDIGITS); if(o!=null && ((FractionDigitsFacet)o).scale < this.scale ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_FRACTIONDIGITS, o.displayName() ) ); // consistency with precision is checked in XSDatatypeImpl.derive method. }
protected MaxLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _maxLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MAXLENGTH,_isFixed); this.maxLength = _maxLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MAXLENGTH); if(o!=null && ((MaxLengthFacet)o).maxLength < this.maxLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MAXLENGTH, o.displayName() ) ); // consistency with minLength is checked in XSDatatypeImpl.derive method. }
public FractionDigitsFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _scale, boolean _isFixed ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_FRACTIONDIGITS, _isFixed ); scale = _scale; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_FRACTIONDIGITS); if(o!=null && ((FractionDigitsFacet)o).scale < this.scale ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_FRACTIONDIGITS, o.displayName() ) ); // consistency with precision is checked in XSDatatypeImpl.derive method. }
protected MaxLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _maxLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MAXLENGTH,_isFixed); this.maxLength = _maxLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MAXLENGTH); if(o!=null && ((MaxLengthFacet)o).maxLength < this.maxLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MAXLENGTH, o.displayName() ) ); // consistency with minLength is checked in XSDatatypeImpl.derive method. }
protected MinLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _minLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MINLENGTH,_isFixed); this.minLength = _minLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MINLENGTH); if(o!=null && ((MinLengthFacet)o).minLength > this.minLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MINLENGTH, o.displayName() ) ); // consistency with maxLength is checked in XSDatatypeImpl.derive method. }
public TotalDigitsFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _precision, boolean _isFixed ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_TOTALDIGITS, _isFixed ); precision = _precision; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_TOTALDIGITS); if(o!=null && ((TotalDigitsFacet)o).precision < this.precision ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_TOTALDIGITS, o.displayName() ) ); // consistency with scale is checked in XSDatatypeImpl.derive method. }
protected MaxLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _maxLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MAXLENGTH,_isFixed); this.maxLength = _maxLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MAXLENGTH); if(o!=null && ((MaxLengthFacet)o).maxLength < this.maxLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MAXLENGTH, o.displayName() ) ); // consistency with minLength is checked in XSDatatypeImpl.derive method. }
public FractionDigitsFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _scale, boolean _isFixed ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_FRACTIONDIGITS, _isFixed ); scale = _scale; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_FRACTIONDIGITS); if(o!=null && ((FractionDigitsFacet)o).scale < this.scale ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_FRACTIONDIGITS, o.displayName() ) ); // consistency with precision is checked in XSDatatypeImpl.derive method. }
protected MinLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _minLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MINLENGTH,_isFixed); this.minLength = _minLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MINLENGTH); if(o!=null && ((MinLengthFacet)o).minLength > this.minLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MINLENGTH, o.displayName() ) ); // consistency with maxLength is checked in XSDatatypeImpl.derive method. }
protected MaxLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _maxLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MAXLENGTH,_isFixed); this.maxLength = _maxLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MAXLENGTH); if(o!=null && ((MaxLengthFacet)o).maxLength < this.maxLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MAXLENGTH, o.displayName() ) ); // consistency with minLength is checked in XSDatatypeImpl.derive method. }
protected MinLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _minLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MINLENGTH,_isFixed); this.minLength = _minLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MINLENGTH); if(o!=null && ((MinLengthFacet)o).minLength > this.minLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MINLENGTH, o.displayName() ) ); // consistency with maxLength is checked in XSDatatypeImpl.derive method. }
public TotalDigitsFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _precision, boolean _isFixed ) throws DatatypeException { super( nsUri, typeName, baseType, FACET_TOTALDIGITS, _isFixed ); precision = _precision; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_TOTALDIGITS); if(o!=null && ((TotalDigitsFacet)o).precision < this.precision ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_TOTALDIGITS, o.displayName() ) ); // consistency with scale is checked in XSDatatypeImpl.derive method. }
protected MinLengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _minLength, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_MINLENGTH,_isFixed); this.minLength = _minLength; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_MINLENGTH); if(o!=null && ((MinLengthFacet)o).minLength > this.minLength ) throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_MINLENGTH, o.displayName() ) ); // consistency with maxLength is checked in XSDatatypeImpl.derive method. }
protected LengthFacet( String nsUri, String typeName, XSDatatypeImpl baseType, int _length, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName,baseType,FACET_LENGTH,_isFixed); length = _length; // loosened facet check DataTypeWithFacet o = baseType.getFacetObject(FACET_LENGTH); if(o!=null && ((LengthFacet)o).length != this.length ) throw new DatatypeException( localize(ERR_LOOSENED_FACET, FACET_LENGTH, o.displayName() ) ); // consistency with minLength/maxLength is checked in XSDatatypeImpl.derive method. }
WhiteSpaceFacet( String nsUri, String typeName, XSDatatypeImpl baseType, WhiteSpaceProcessor proc, boolean _isFixed ) throws DatatypeException { super(nsUri,typeName, baseType, FACET_WHITESPACE, _isFixed,proc); // loosened facet check if( baseType.whiteSpace.tightness() > this.whiteSpace.tightness() ) { XSDatatype d; d=baseType.getFacetObject(FACET_WHITESPACE); if(d==null) d = getConcreteType(); throw new DatatypeException( localize( ERR_LOOSENED_FACET, FACET_WHITESPACE, d.displayName() )); } // consistency with minLength/maxLength is checked in XSDatatypeImpl.derive method. }