Class Where2DOM

    • Field Detail

      • doc

        protected org.w3c.dom.Document doc
      • parent

        protected org.w3c.dom.Node parent
      • indent

        protected int indent
      • nsmode

        protected short nsmode
      • MODE_ALWAYS_QUALIFIED

        public static final short MODE_ALWAYS_QUALIFIED
        the namespace qualification mode in which all elements will always be fully qualified with a prefix
        See Also:
        Constant Field Values
      • MODE_DEFAULT_NS

        public static final short MODE_DEFAULT_NS
        the namespace qualification mode in which default namespaces are defined to minimize the qualification with prefixes.
        See Also:
        Constant Field Values
      • MODE_COUNT

        protected static final short MODE_COUNT
        the total number of namespace qualification modes supported
        See Also:
        Constant Field Values
      • token

        public Token token
        Current token.
      • jj_nt

        public Token jj_nt
        Next token.
    • Constructor Detail

      • Where2DOM

        public Where2DOM()
      • Where2DOM

        public Where2DOM​(java.io.InputStream stream)
        Constructor with InputStream.
      • Where2DOM

        public Where2DOM​(java.io.InputStream stream,
                         java.lang.String encoding)
        Constructor with InputStream and supplied encoding
      • Where2DOM

        public Where2DOM​(java.io.Reader stream)
        Constructor.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws javax.xml.transform.TransformerException
        Throws:
        javax.xml.transform.TransformerException
      • createADQLElement

        protected org.w3c.dom.Element createADQLElement​(java.lang.String name)
      • 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 < 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 < 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

        public void indent​(org.w3c.dom.Element parent,
                           java.lang.String indent,
                           int incr)
        insert the text nodes that provide pretty indentations. This will avoid inserting indentation multiple times.
        Parameters:
        parent - the node to insert text nodes into
        indent - the current indentation string on parent. If null, no indentation is currently in place.
        incr - the indentation increment
      • addIndentation

        public static java.lang.String addIndentation​(java.lang.String base,
                                                      int spaceCount)
        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

        protected org.w3c.dom.Element getChildByTag​(org.w3c.dom.Element el,
                                                    java.lang.String name)
      • matchesXSIType

        protected boolean matchesXSIType​(org.w3c.dom.Element el,
                                         java.lang.String qtype)
      • renameADQLElement

        protected org.w3c.dom.Element renameADQLElement​(org.w3c.dom.Element el,
                                                        java.lang.String newname,
                                                        org.w3c.dom.Node parent)
      • FunctionOfOneVar

        public final org.w3c.dom.Element FunctionOfOneVar​(java.lang.String name,
                                                          boolean setXSIType)
                                                   throws ParseException
        Throws:
        ParseException
      • BetweenPred

        public final org.w3c.dom.Element BetweenPred​(java.lang.String name,
                                                     boolean setXSIType)
                                              throws ParseException
        Throws:
        ParseException
      • ClosedExpr

        public final org.w3c.dom.Element ClosedExpr​(java.lang.String name,
                                                    boolean setXSIType)
                                             throws ParseException
        Throws:
        ParseException
      • ClosedSearch

        public final org.w3c.dom.Element ClosedSearch​(java.lang.String name,
                                                      boolean setXSIType)
                                               throws ParseException
        Throws:
        ParseException
      • ColumnReference

        public final org.w3c.dom.Element ColumnReference​(java.lang.String name,
                                                         boolean setXSIType)
                                                  throws ParseException
        Throws:
        ParseException
      • ActualColumnReference

        public final org.w3c.dom.Element ActualColumnReference​(java.lang.String name,
                                                               boolean setXSIType)
                                                        throws ParseException
        Throws:
        ParseException
      • XPathReference

        public final org.w3c.dom.Element XPathReference​(java.lang.String name,
                                                        boolean setXSIType)
                                                 throws ParseException
        Throws:
        ParseException
      • ComparisonPred

        public final org.w3c.dom.Element ComparisonPred​(java.lang.String name,
                                                        boolean setXSIType)
                                                 throws ParseException
        Throws:
        ParseException
      • IntersectionSearch

        public final org.w3c.dom.Element IntersectionSearch​(java.lang.String name,
                                                            boolean setXSIType)
                                                     throws ParseException
        Throws:
        ParseException
      • IntersectionElement

        public final org.w3c.dom.Element IntersectionElement​(java.lang.String name,
                                                             boolean setXSIType)
                                                      throws ParseException
        Throws:
        ParseException
      • InverseSearch

        public final org.w3c.dom.Element InverseSearch​(java.lang.String name,
                                                       boolean setXSIType)
                                                throws ParseException
        Throws:
        ParseException
      • Literal

        public final org.w3c.dom.Element Literal​(java.lang.String name,
                                                 boolean setXSIType)
                                          throws ParseException
        Throws:
        ParseException
      • Number

        public final org.w3c.dom.Element Number​(java.lang.String name,
                                                boolean setXSIType)
                                         throws ParseException
        Throws:
        ParseException
      • RegionSearch

        public final org.w3c.dom.Element RegionSearch​(java.lang.String name,
                                                      boolean setXSIType)
                                               throws ParseException
        Throws:
        ParseException
      • ScalarExpression

        public final org.w3c.dom.Element ScalarExpression​(java.lang.String name)
                                                   throws ParseException
        Throws:
        ParseException
      • MultExpr

        public final org.w3c.dom.Element MultExpr​(java.lang.String name,
                                                  boolean setXSIType)
                                           throws ParseException
        Throws:
        ParseException
      • UnitExpr

        public final org.w3c.dom.Element UnitExpr​(java.lang.String name,
                                                  boolean setXSIType)
                                           throws ParseException
        Throws:
        ParseException
      • XString

        public final org.w3c.dom.Element XString​(java.lang.String name,
                                                 boolean setXSIType)
                                          throws ParseException
        Throws:
        ParseException
      • UnionSearch

        public final org.w3c.dom.Element UnionSearch​(java.lang.String name,
                                                     boolean setXSIType)
                                              throws ParseException
        Throws:
        ParseException
      • ReInit

        public void ReInit​(java.io.InputStream stream)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.InputStream stream,
                           java.lang.String encoding)
        Reinitialise.
      • ReInit

        public void ReInit​(java.io.Reader stream)
        Reinitialise.
      • getNextToken

        public final Token getNextToken()
        Get the next Token.
      • getToken

        public final Token getToken​(int index)
        Get the specific Token.
      • generateParseException

        public ParseException generateParseException()
        Generate ParseException.
      • enable_tracing

        public final void enable_tracing()
        Enable tracing.
      • disable_tracing

        public final void disable_tracing()
        Disable tracing.