|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moremotion.evaluator.Conventions
public class Conventions
This class provides static methods for checking the validity of the given identities or to convert the given strings to valid identifiers.
Constructor Summary | |
---|---|
Conventions()
|
Method Summary | |
---|---|
static java.lang.String |
generateValidId(java.lang.String str)
Generates a valid identity string, which can be used as a XML tag, from the given string. |
static boolean |
isValidEntityIdentifier(java.lang.String id)
Returns true is the given string is a valid identifier that can be used as an XML tag name. |
static boolean |
isValidFieldName(java.lang.String name)
Returns true if the given string is a valid field name. |
static java.lang.String |
safeXmlNodeName(java.lang.String str)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Conventions()
Method Detail |
---|
public static boolean isValidEntityIdentifier(java.lang.String id)
true
is the given string is a valid identifier that can be used as an XML tag name.
public static boolean isValidFieldName(java.lang.String name)
true
if the given string is a valid field name. In a valid field name:
public static java.lang.String generateValidId(java.lang.String str)
public static java.lang.String safeXmlNodeName(java.lang.String str)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |