|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.etai.xat2v2.util.Xat2Util
public final class Xat2Util
Method Summary | ||
---|---|---|
static void |
addAppId(Xat2 xat2,
String appId)
Adds an applicationId to the xat2 |
|
static void |
addVerb(Xat2 xat2,
String verb)
Adds a verb to the xat2 |
|
static Object |
createIfDoesntExist(Object base,
String... path)
|
|
static String |
getApplicationId(Xat2 xat2)
Gets the applicationId from the XAT2 objects hierarchy. |
|
static Message[] |
getErrors(Xat2 xat2)
Returns all the error messages contained in the xat2 message. |
|
static
|
getIfExists(Object base,
Class<T> expectedType,
String... path)
|
|
static Object |
getIfExists(Object base,
String... path)
|
|
static String[] |
getVerbOptions(Xat2 xat2,
String verb)
Gets the options linked to a specific verb |
|
static String[] |
getVerbs(Xat2 xat2)
Extract the verbs from the xat2 |
|
static boolean |
hasErrorMessage(Xat2 xat2)
Checks if the xat2 message contains a least one error message. |
|
static void |
setFirstVerb(Xat2 xat2,
String verb)
|
|
static String |
toString(Object obj)
Creates a String representation of any XAT2 object, List or Array of Xat2 Objects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getApplicationId(Xat2 xat2)
xat2
-
public static Message[] getErrors(Xat2 xat2)
xat2
-
public static boolean hasErrorMessage(Xat2 xat2)
xat2
-
public static String[] getVerbs(Xat2 xat2)
xat2
-
public static void addVerb(Xat2 xat2, String verb)
xat2
- verb
- public static void addAppId(Xat2 xat2, String appId)
xat2
- appId
- public static String[] getVerbOptions(Xat2 xat2, String verb)
xat2
- verb
-
public static void setFirstVerb(Xat2 xat2, String verb)
public static <T> T getIfExists(Object base, Class<T> expectedType, String... path)
public static Object getIfExists(Object base, String... path)
public static Object createIfDoesntExist(Object base, String... path)
public static String toString(Object obj)
obj
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |