Package org.basex.query.func.validate
Class ValidateRngInfo
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.ParseExpr
org.basex.query.expr.Arr
org.basex.query.func.StandardFunc
org.basex.query.func.validate.ValidateRng
org.basex.query.func.validate.ValidateRngInfo
Validates a document against a RelaxNG document.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.query.func.StandardFunc
definition, sc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Emptycheck(QueryContext qc) Runs the validation process and returns an empty sequence or an error.protected final Valueinfo(QueryContext qc) Runs the validation process and returns the errors as string sequence.protected final ArrayList<org.basex.query.func.validate.ErrorInfo>process(org.basex.query.func.validate.Validation v) Runs the specified validator.protected final IOread(Item item, SerializerOptions sopts) Returns an input reference (possibly cached) to the first argument.protected final FElemreport(QueryContext qc) Runs the validation process and returns the errors as XML.value(QueryContext qc) Evaluates the expression and returns the resulting value.Methods inherited from class org.basex.query.func.validate.ValidateRng
errorsMethods inherited from class org.basex.query.func.StandardFunc
checkAdmin, checkArity, checkArity, checkCreate, checkData, checkPath, checkPath, coerceFunc, compileData, copy, data, data, dataLock, dateTimeToMs, description, equals, has, opt, optFirst, optFirst, optimize, plan, plan, serialize, simplifyArgs, toBaseUri, toBindings, toCollation, toDate, toDBNode, toEncodingOrNull, toNodeOrAtomItem, toOptions, toPath, toPath, toQuery, toQuery, vacuousMethods inherited from class org.basex.query.expr.Arr
accept, allAreValues, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inline, inlineable, mayBePositional, simplifyAllMethods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, item, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroTokenMethods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, simplifyFor, typeCheck, uses, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
Constructor Details
-
ValidateRngInfo
public ValidateRngInfo()
-
-
Method Details
-
value
Description copied from class:ExprEvaluates the expression and returns the resulting value. If this method is not implemented,Expr.item(QueryContext, InputInfo)must be implemented instead.- Overrides:
valuein classValidateRng- Parameters:
qc- query context- Returns:
- value
- Throws:
QueryException- query exception
-
check
Runs the validation process and returns an empty sequence or an error.- Parameters:
qc- query context- Returns:
- empty sequence
- Throws:
QueryException- query exception
-
info
Runs the validation process and returns the errors as string sequence.- Parameters:
qc- query context- Returns:
- string sequence
- Throws:
QueryException- query exception
-
report
Runs the validation process and returns the errors as XML.- Parameters:
qc- query context- Returns:
- XML
- Throws:
QueryException- query exception
-
process
protected final ArrayList<org.basex.query.func.validate.ErrorInfo> process(org.basex.query.func.validate.Validation v) throws QueryException Runs the specified validator.- Parameters:
v- validator code- Returns:
- errors
- Throws:
QueryException- query exception
-
read
Returns an input reference (possibly cached) to the first argument.- Parameters:
item- itemsopts- serializer parameters- Returns:
- item
- Throws:
QueryException- query exceptionIOException- exception
-