Package net.ivoa.registry.search
Class Where2DOM
java.lang.Object
net.ivoa.registry.search.Where2DOM
- All Implemented Interfaces:
Where2DOMConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Documentprotected intNext token.static final shortthe namespace qualification mode in which all elements will always be fully qualified with a prefixprotected static final shortthe total number of namespace qualification modes supportedstatic final shortthe namespace qualification mode in which default namespaces are defined to minimize the qualification with prefixes.protected shortprotected Nodestatic final Stringstatic final Stringstatic final Stringstatic final StringCurrent token.Generated Token Manager.static final StringFields inherited from interface net.ivoa.registry.search.Where2DOMConstants
DEFAULT, DIGIT, EOF, FLOAT, INTEGER, K_abs, K_acos, K_ALL, K_AND, K_ANY, K_AS, K_ASC, K_asin, K_atan, K_atan2, K_AVG, K_BETWEEN, K_BY, K_ceiling, K_cos, K_COUNT, K_degrees, K_DESC, K_DISTINCT, K_EXISTS, K_exp, K_floor, K_FROM, K_GROUP, K_HAVING, K_IN, K_INTO, K_IS, K_LIKE, K_log, K_log10, K_MAX, K_MIN, K_NOT, K_NOWAIT, K_OR, K_ORDER, K_pi, K_power, K_radians, K_rand, K_REGION, K_round, K_SELECT, K_sin, K_sqrt, K_square, K_SUM, K_tan, K_TOP, K_truncate, K_UNION, K_WHERE, K_XMATCH, LETTER, LINE_COMMENT, MULTI_LINE_COMMENT, S_CHAR_LITERAL, S_IDENTIFIER, S_INTEGER, S_PROTECTED, S_QUOTED_IDENTIFIER, S_REAL, S_TABLE_IDENTIFIER, S_XPATH, S_XPATH_IDENTIFIER, SPECIAL_CHARS, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionWhere2DOM(InputStream stream) Constructor with InputStream.Where2DOM(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ElementActualColumnReference(String name, boolean setXSIType) static StringaddIndentation(String base, int spaceCount) append spaceCount spaces after the given base stringfinal Stringfinal Elementfinal ElementBetweenPred(String name, boolean setXSIType) final ElementClosedExpr(String name, boolean setXSIType) final ElementClosedSearch(String name, boolean setXSIType) final ElementColumnReference(String name, boolean setXSIType) final Stringfinal Stringfinal ElementComparisonPred(String name, boolean setXSIType) protected ElementcreateADQLElement(String name) final voidDisable tracing.final voidEnable tracing.final ElementFunctionOfOneVar(String name, boolean setXSIType) Generate ParseException.protected ElementgetChildByTag(Element el, String name) intreturn the pretty-fying indent amount that will be inserted.final TokenGet the next Token.shortgetNSMode(short mode) return the namespace qualification mode that will be usedfinal TokengetToken(int index) Get the specific Token.voidindent()insert the text nodes that provide pretty indentations.voidinsert the text nodes that provide pretty indentations.final ElementIntersectionElement(String name, boolean setXSIType) final ElementIntersectionSearch(String name, boolean setXSIType) final ElementInverseSearch(String name, boolean setXSIType) final Elementstatic voidprotected booleanmatchesXSIType(Element el, String qtype) final Stringfinal Elementfinal Elementfinal Elementfinal ElementRegionSearch(String name, boolean setXSIType) voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidprotected ElementrenameADQLElement(Element el, String newname, Node parent) final ElementScalarExpression(String name) final ElementvoidsetIndent(int indent) set the desired pretty-fying indent amount.voidsetNSMode(short mode) set the namespace qualification mode to usefinal booleanTrace enabled.final Stringfinal ElementUnionSearch(String name, boolean setXSIType) final Elementfinal Elementfinal Elementfinal ElementXPathReference(String name, boolean setXSIType) final Element
-
Field Details
-
ADQL_NS
- See Also:
-
ADQL_PREFIX
- See Also:
-
STCR_NS
- See Also:
-
STCR_PREFIX
- See Also:
-
STCC_NS
- See Also:
-
STCC_PREFIX
- See Also:
-
doc
-
parent
-
indent
protected int indent -
nsmode
protected short nsmode -
XSI_NS
- See Also:
-
MODE_ALWAYS_QUALIFIED
public static final short MODE_ALWAYS_QUALIFIEDthe namespace qualification mode in which all elements will always be fully qualified with a prefix- See Also:
-
MODE_DEFAULT_NS
public static final short MODE_DEFAULT_NSthe namespace qualification mode in which default namespaces are defined to minimize the qualification with prefixes.- See Also:
-
MODE_COUNT
protected static final short MODE_COUNTthe total number of namespace qualification modes supported- See Also:
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Where2DOM
public Where2DOM() -
Where2DOM
Constructor with InputStream. -
Where2DOM
Constructor with InputStream and supplied encoding -
Where2DOM
Constructor. -
Where2DOM
Constructor with generated Token Manager.
-
-
Method Details
-
main
- Throws:
TransformerException
-
createADQLElement
-
parseWhere
- Throws:
ParseException
-
setIndent
public void setIndent(int indent) set the desired pretty-fying indent amount. If indent = 0, only carriage returns are inserted between each element. If indent invalid input: '<' 0, no indentation or carriage returns will be inserted.- Parameters:
indent- the amount of indentation per depth level
-
getIndent
public int getIndent()return the pretty-fying indent amount that will be inserted. If indent = 0, only carriage returns are inserted between each element. If indent invalid input: '<' 0, no indentation or carriage returns will be inserted.- Parameters:
indent- the amount of indentation per depth level
-
indent
public void indent()insert the text nodes that provide pretty indentations. This will avoid inserting indentation multiple times. -
indent
insert the text nodes that provide pretty indentations. This will avoid inserting indentation multiple times.- Parameters:
parent- the node to insert text nodes intoindent- the current indentation string on parent. If null, no indentation is currently in place.incr- the indentation increment
-
addIndentation
append spaceCount spaces after the given base string -
setNSMode
public void setNSMode(short mode) set the namespace qualification mode to use -
getNSMode
public short getNSMode(short mode) return the namespace qualification mode that will be used -
getChildByTag
-
matchesXSIType
-
renameADQLElement
-
MathFunctionName
- Throws:
ParseException
-
AggregateFunctionName
- Throws:
ParseException
-
TrigonometricFunctionName
- Throws:
ParseException
-
FunctionOfOneVar
- Throws:
ParseException
-
Atom
- Throws:
ParseException
-
Unit
- Throws:
ParseException
-
BetweenPred
- Throws:
ParseException
-
ClosedExpr
- Throws:
ParseException
-
ClosedSearch
- Throws:
ParseException
-
ColumnReference
- Throws:
ParseException
-
ActualColumnReference
- Throws:
ParseException
-
XPathReference
- Throws:
ParseException
-
RelativeXPath
- Throws:
ParseException
-
ComparisonPred
- Throws:
ParseException
-
ComparisonDivider
- Throws:
ParseException
-
Comparison
- Throws:
ParseException
-
IntersectionSearch
- Throws:
ParseException
-
IntersectionElement
- Throws:
ParseException
-
InverseSearch
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
Number
- Throws:
ParseException
-
RegionSearch
- Throws:
ParseException
-
ScalarExpression
- Throws:
ParseException
-
PlusExpr
- Throws:
ParseException
-
MultExpr
- Throws:
ParseException
-
UnitExpr
- Throws:
ParseException
-
Search
- Throws:
ParseException
-
XString
- Throws:
ParseException
-
UnionSearch
- Throws:
ParseException
-
Where
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-