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 String
static final String
protected Document
protected int
Next token.static final short
the namespace qualification mode in which all elements will always be fully qualified with a prefixprotected static final short
the total number of namespace qualification modes supportedstatic final short
the namespace qualification mode in which default namespaces are defined to minimize the qualification with prefixes.protected short
protected Node
static final String
static final String
static final String
static final String
Current token.Generated Token Manager.static final String
Fields 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 Element
ActualColumnReference
(String name, boolean setXSIType) static String
addIndentation
(String base, int spaceCount) append spaceCount spaces after the given base stringfinal String
final Element
final Element
BetweenPred
(String name, boolean setXSIType) final Element
ClosedExpr
(String name, boolean setXSIType) final Element
ClosedSearch
(String name, boolean setXSIType) final Element
ColumnReference
(String name, boolean setXSIType) final String
final String
final Element
ComparisonPred
(String name, boolean setXSIType) protected Element
createADQLElement
(String name) final void
Disable tracing.final void
Enable tracing.final Element
FunctionOfOneVar
(String name, boolean setXSIType) Generate ParseException.protected Element
getChildByTag
(Element el, String name) int
return the pretty-fying indent amount that will be inserted.final Token
Get the next Token.short
getNSMode
(short mode) return the namespace qualification mode that will be usedfinal Token
getToken
(int index) Get the specific Token.void
indent()
insert the text nodes that provide pretty indentations.void
insert the text nodes that provide pretty indentations.final Element
IntersectionElement
(String name, boolean setXSIType) final Element
IntersectionSearch
(String name, boolean setXSIType) final Element
InverseSearch
(String name, boolean setXSIType) final Element
static void
protected boolean
matchesXSIType
(Element el, String qtype) final String
final Element
final Element
final Element
final Element
RegionSearch
(String name, boolean setXSIType) void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
protected Element
renameADQLElement
(Element el, String newname, Node parent) final Element
ScalarExpression
(String name) final Element
void
setIndent
(int indent) set the desired pretty-fying indent amount.void
setNSMode
(short mode) set the namespace qualification mode to usefinal boolean
Trace enabled.final String
final Element
UnionSearch
(String name, boolean setXSIType) final Element
final Element
final Element
final Element
XPathReference
(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.
-