|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.util.ScriptUtils
public final class ScriptUtils
Various scripting utility methods.
Field Summary | |
---|---|
static String |
BEGIN_COMMENT
XML cdata start. |
static String |
END_COMMENT
XML character data end. |
static String |
SCRIPT_PATTERN
Regexp represenging javascript matches. |
Method Summary | |
---|---|
static String |
ensureValidScriptTags(String input)
Takes any <script>contents..</script> tags found in the specified
input string and replaces their contents into one large <script></script>
block (meaning if multiple script blocks are found, they will be turned into one),
with the addition of BEGIN_COMMENT inserted before the logic block and
END_COMMENT inserted after the logic block. |
static String |
functionHash(Object target)
Utility that will attempt to generate a unique hash string that is javascript client in a function name based on the inomcing object's Object.hashCode() return value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BEGIN_COMMENT
public static final String END_COMMENT
public static final String SCRIPT_PATTERN
Method Detail |
---|
public static String ensureValidScriptTags(String input)
<script>contents..</script>
tags found in the specified
input string and replaces their contents into one large <script></script>
block (meaning if multiple script blocks are found, they will be turned into one),
with the addition of BEGIN_COMMENT
inserted before the logic block and
END_COMMENT
inserted after the logic block.
input
- The string to replace tags on
public static String functionHash(Object target)
Object.hashCode()
return value.
target
- The object to hash a string for.
Object.hashCode()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |