final public boolean isValid( String literal, ValidationContext context ) { // step.1 white space processing literal = whiteSpace.process(literal); if( needValueCheck() ) // constraint facet that needs computation of value is specified. return _createValue(literal,context)!=null; else // lexical validation is enough. return checkFormat(literal,context); }
final public boolean isValid( String literal, ValidationContext context ) { // step.1 white space processing literal = whiteSpace.process(literal); if( needValueCheck() ) // constraint facet that needs computation of value is specified. return _createValue(literal,context)!=null; else // lexical validation is enough. return checkFormat(literal,context); }
final public boolean isValid( String literal, ValidationContext context ) { // step.1 white space processing literal = whiteSpace.process(literal); if( needValueCheck() ) // constraint facet that needs computation of value is specified. return _createValue(literal,context)!=null; else // lexical validation is enough. return checkFormat(literal,context); }
final public boolean isValid( String literal, ValidationContext context ) { // step.1 white space processing literal = whiteSpace.process(literal); if( needValueCheck() ) // constraint facet that needs computation of value is specified. return _createValue(literal,context)!=null; else // lexical validation is enough. return checkFormat(literal,context); }
final public boolean isValid( String literal, ValidationContext context ) { // step.1 white space processing literal = whiteSpace.process(literal); if( needValueCheck() ) // constraint facet that needs computation of value is specified. return _createValue(literal,context)!=null; else // lexical validation is enough. return checkFormat(literal,context); }
/** constructor for WhiteSpaceFacet */ DataTypeWithFacet( String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace ) throws DatatypeException { super(nsUri,typeName, whiteSpace); this.baseType = baseType; this.facetName = facetName; this.isFacetFixed = _isFixed; this.concreteType = baseType.getConcreteType(); needValueCheckFlag = baseType.needValueCheck(); int r = baseType.isFacetApplicable(facetName); switch(r) { case APPLICABLE: return; // this facet is applicable to this type. no problem. case NOT_ALLOWED: throw new DatatypeException( localize(ERR_NOT_APPLICABLE_FACET, facetName) ); case FIXED: throw new DatatypeException( localize(ERR_OVERRIDING_FIXED_FACET, facetName) ); } }
/** constructor for WhiteSpaceFacet */ DataTypeWithFacet( String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace ) throws DatatypeException { super(nsUri,typeName, whiteSpace); this.baseType = baseType; this.facetName = facetName; this.isFacetFixed = _isFixed; this.concreteType = baseType.getConcreteType(); needValueCheckFlag = baseType.needValueCheck(); int r = baseType.isFacetApplicable(facetName); switch(r) { case APPLICABLE: return; // this facet is applicable to this type. no problem. case NOT_ALLOWED: throw new DatatypeException( localize(ERR_NOT_APPLICABLE_FACET, facetName) ); case FIXED: throw new DatatypeException( localize(ERR_OVERRIDING_FIXED_FACET, facetName) ); } }
/** constructor for WhiteSpaceFacet */ DataTypeWithFacet( String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace ) throws DatatypeException { super(nsUri,typeName, whiteSpace); this.baseType = baseType; this.facetName = facetName; this.isFacetFixed = _isFixed; this.concreteType = baseType.getConcreteType(); needValueCheckFlag = baseType.needValueCheck(); int r = baseType.isFacetApplicable(facetName); switch(r) { case APPLICABLE: return; // this facet is applicable to this type. no problem. case NOT_ALLOWED: throw new DatatypeException( localize(ERR_NOT_APPLICABLE_FACET, facetName) ); case FIXED: throw new DatatypeException( localize(ERR_OVERRIDING_FIXED_FACET, facetName) ); } }
/** constructor for WhiteSpaceFacet */ DataTypeWithFacet( String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace ) throws DatatypeException { super(nsUri,typeName, whiteSpace); this.baseType = baseType; this.facetName = facetName; this.isFacetFixed = _isFixed; this.concreteType = baseType.getConcreteType(); needValueCheckFlag = baseType.needValueCheck(); int r = baseType.isFacetApplicable(facetName); switch(r) { case APPLICABLE: return; // this facet is applicable to this type. no problem. case NOT_ALLOWED: throw new DatatypeException( localize(ERR_NOT_APPLICABLE_FACET, facetName) ); case FIXED: throw new DatatypeException( localize(ERR_OVERRIDING_FIXED_FACET, facetName) ); } }
/** constructor for WhiteSpaceFacet */ DataTypeWithFacet( String nsUri, String typeName, XSDatatypeImpl baseType, String facetName, boolean _isFixed, WhiteSpaceProcessor whiteSpace ) throws DatatypeException { super(nsUri,typeName, whiteSpace); this.baseType = baseType; this.facetName = facetName; this.isFacetFixed = _isFixed; this.concreteType = baseType.getConcreteType(); needValueCheckFlag = baseType.needValueCheck(); int r = baseType.isFacetApplicable(facetName); switch(r) { case APPLICABLE: return; // this facet is applicable to this type. no problem. case NOT_ALLOWED: throw new DatatypeException( localize(ERR_NOT_APPLICABLE_FACET, facetName) ); case FIXED: throw new DatatypeException( localize(ERR_OVERRIDING_FIXED_FACET, facetName) ); } }