org.apache.jasper.compiler
クラス JspUtil

java.lang.Object
  |
  +--org.apache.jasper.compiler.JspUtil

public class JspUtil
extends java.lang.Object

This class has all the utility method(s). Ideally should move all the bean containers here.

作成者:
Mandar Raje., Rajiv Mordani., Danno Ferrin, Pierre Delisle

内部クラスの概要
static class JspUtil.ValidAttribute
           
 
コンストラクタの概要
JspUtil()
           
 
メソッドの概要
static java.util.Hashtable attrsToHashtable(org.xml.sax.Attributes attrs)
           
static boolean booleanValue(java.lang.String s)
          Convert a String value to 'boolean'.
static void checkAttributes(java.lang.String typeOfTag, org.xml.sax.Attributes attrs, JspUtil.ValidAttribute[] validAttributes, Mark start)
           
static java.lang.String escapeQueryString(java.lang.String unescString)
           
static char[] escapeQuotes(char[] chars)
           
static java.lang.String escapeXml(java.lang.String s)
          Escape the 5 entities defined by XML.
static java.lang.String getElementChildTextData(org.w3c.dom.Element e)
          Get the data for the first child associated with the Element provided as argument.
static java.lang.String getExpr(java.lang.String expression, boolean isXml)
           
static java.lang.String getExprInXml(java.lang.String expression)
          Takes a potential expression and converts it into XML form
static boolean isExpression(java.lang.String token, boolean isXml)
          Checks if the token is a runtime expression.
static org.w3c.dom.Document parseXMLDoc(java.lang.String uri, java.io.InputStream in)
          推奨されていません。 Use ParserUtils.parseXMLDocument() instead
static org.w3c.dom.Document parseXMLDocJaxp(java.lang.String uri, java.io.InputStream in)
          推奨されていません。 Use ParserUtils.parseXMLDocument() instead
static char[] removeQuotes(char[] chars)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JspUtil

public JspUtil()
メソッドの詳細

removeQuotes

public static char[] removeQuotes(char[] chars)

escapeQuotes

public static char[] escapeQuotes(char[] chars)

isExpression

public static boolean isExpression(java.lang.String token,
                                   boolean isXml)
Checks if the token is a runtime expression. In standard JSP syntax, a runtime expression starts with '<%' and ends with '%>'. When the JSP document is in XML syntax, a runtime expression starts with '%=' and ends with '%'.
パラメータ:
token - The token to be checked return whether the token is a runtime expression or not.

getExpr

public static java.lang.String getExpr(java.lang.String expression,
                                       boolean isXml)
戻り値:
the "expression" part of a runtime expression, taking the delimiters out.

getExprInXml

public static java.lang.String getExprInXml(java.lang.String expression)
Takes a potential expression and converts it into XML form

parseXMLDoc

public static org.w3c.dom.Document parseXMLDoc(java.lang.String uri,
                                               java.io.InputStream in)
                                        throws JasperException
推奨されていません。 Use ParserUtils.parseXMLDocument() instead

Parses the XML document contained in the InputStream.

parseXMLDocJaxp

public static org.w3c.dom.Document parseXMLDocJaxp(java.lang.String uri,
                                                   java.io.InputStream in)
                                            throws JasperException
推奨されていません。 Use ParserUtils.parseXMLDocument() instead

Parses the XML document contained in the InputStream. This XML document is either web.xml or a tld. [The TLD has to be cached internally (see MyEntityResolver)]

checkAttributes

public static void checkAttributes(java.lang.String typeOfTag,
                                   org.xml.sax.Attributes attrs,
                                   JspUtil.ValidAttribute[] validAttributes,
                                   Mark start)
                            throws JasperException

escapeQueryString

public static java.lang.String escapeQueryString(java.lang.String unescString)

escapeXml

public static java.lang.String escapeXml(java.lang.String s)
Escape the 5 entities defined by XML.

attrsToHashtable

public static java.util.Hashtable attrsToHashtable(org.xml.sax.Attributes attrs)

getElementChildTextData

public static java.lang.String getElementChildTextData(org.w3c.dom.Element e)
Get the data for the first child associated with the Element provided as argument. It is assumed that this first child is of type Text.
パラメータ:
e - the DOM Element to read from
戻り値:
the data associated with the first child of the DOM element.

booleanValue

public static boolean booleanValue(java.lang.String s)
Convert a String value to 'boolean'. Besides the standard conversions done by Boolean.valueOf(s).booleanValue(), the value "yes" (ignore case) is also converted to 'true'. If 's' is null, then 'false' is returned.
パラメータ:
s - the string to be converted
戻り値:
the boolean value associated with the string s


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.