Package org.basex.query.func.validate
Class ValidateRngReport
- 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.ValidateRngReport
-
public final class ValidateRngReport extends ValidateRng
Function implementation.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Field Summary
-
Fields inherited from class org.basex.query.func.StandardFunc
definition
-
-
Constructor Summary
Constructors Constructor Description ValidateRngReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Empty
check(QueryContext qc)
Runs the validation process and returns an empty sequence or an error.protected Value
info(QueryContext qc)
Runs the validation process and returns the errors as string sequence.protected IO
read(Item item, SerializerOptions sopts)
Returns an input reference (possibly cached) to the first argument.protected FNode
report(QueryContext qc)
Runs the validation process and returns the errors as XML.protected ArrayList<org.basex.query.func.validate.ErrorInfo>
validate(org.basex.query.func.validate.Validation v)
Runs the specified validator.Value
value(QueryContext qc)
Evaluates the expression and returns the resulting value.-
Methods inherited from class org.basex.query.func.validate.ValidateRng
errors
-
Methods inherited from class org.basex.query.func.StandardFunc
arity, checkPerm, coerce, coerce, compileData, copy, dataLock, defined, description, embed, equals, has, hasCTX, hasUPD, hofIndex, opt, optFirst, optFirst, optimize, refineFunc, serialize, simplifyArgs, toBaseUri, toBindings, toBoolean, toCollation, toCollation, toContent, toContent, toData, toDate, toDBNode, toEncodingOrNull, toEncodingOrNull, toFunction, toFunction, toFunctionOrNull, toIO, toIO, toMs, toName, toNodeOrAtomItem, toOptions, toOptions, toPath, toPath, toStr, toString, toXml, toZeroStr, vacuous, variadic
-
Methods inherited from class org.basex.query.expr.Arr
accept, allAreValues, arg, args, checkUp, compile, copyAll, count, exprSize, flatten, inline, inlineable, mayBePositional, removeEmpty, simplifyAll
-
Methods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, data, info, item, iter, refineType, sc, seqType, size, test, toArray, toArray, toAtomItem, toBin, toBin, toBinOrNull, toBoolean, toBoolean, toBooleanOrFalse, toBytes, toBytes, toDouble, toDouble, toElem, toElem, toEnum, toFloat, toFunction, toLong, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumber, toNumberOrNull, toQNm, toQNmOrNull, toRecord, toString, toString, toStringOrNull, toToken, toToken, toTokenOrNull, toZeroToken
-
Methods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, ddo, funcType, hasFreeVars, indexAccessible, info, isSimple, markTailCalls, mergeEbv, optimizePos, simplify, simplifyFor, typeCheck, uses, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
toErrorString, toString
-
-
-
-
Method Detail
-
value
public Value value(QueryContext qc) throws QueryException
Description copied from class:Expr
Evaluates the expression and returns the resulting value. If this method is not implemented,Expr.item(QueryContext, InputInfo)
must be implemented instead.- Overrides:
value
in classValidateRng
- Parameters:
qc
- query context- Returns:
- value
- Throws:
QueryException
- query exception
-
check
protected final Empty check(QueryContext qc) throws QueryException
Runs the validation process and returns an empty sequence or an error.- Parameters:
qc
- query context- Returns:
- empty sequence
- Throws:
QueryException
- query exception
-
info
protected final Value info(QueryContext qc) throws QueryException
Runs the validation process and returns the errors as string sequence.- Parameters:
qc
- query context- Returns:
- string sequence
- Throws:
QueryException
- query exception
-
report
protected final FNode report(QueryContext qc) throws QueryException
Runs the validation process and returns the errors as XML.- Parameters:
qc
- query context- Returns:
- XML
- Throws:
QueryException
- query exception
-
validate
protected final ArrayList<org.basex.query.func.validate.ErrorInfo> validate(org.basex.query.func.validate.Validation v) throws QueryException
Runs the specified validator.- Parameters:
v
- validator code- Returns:
- errors
- Throws:
QueryException
- query exception
-
read
protected final IO read(Item item, SerializerOptions sopts) throws QueryException, IOException
Returns an input reference (possibly cached) to the first argument.- Parameters:
item
- itemsopts
- serializer parameters- Returns:
- item
- Throws:
QueryException
- query exceptionIOException
- exception
-
-