|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springjutsu.validation.util.PathUtils
public class PathUtils
| Constructor Summary | |
|---|---|
PathUtils()
|
|
| Method Summary | |
|---|---|
static String |
appendPath(String... pathSegments)
|
static Class<?>[] |
getClassesForPathTokens(Class<?> clazz,
String path,
boolean unwrapCollectionTypes)
Determine the class of each step in the selected path on the target class. |
static Class<?> |
getClassForPath(Class<?> clazz,
String path,
boolean unwrapFinalCollectionType)
Determine the class of the selected path on the target class. |
static boolean |
pathExists(Class<?> clazz,
String path)
Determine if a path exists on the given class. |
static String |
subPath(String path,
Integer startToken,
Integer endToken)
Get a path constructed specified set of subpath segments from a path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathUtils()
| Method Detail |
|---|
public static String appendPath(String... pathSegments)
public static boolean pathExists(Class<?> clazz,
String path)
clazz - Class to checkpath - Path to check
public static Class<?> getClassForPath(Class<?> clazz,
String path,
boolean unwrapFinalCollectionType)
clazz - Class to checkpath - Path to checkunwrapFinalCollectionType - if true returns the parameterized collection type
public static Class<?>[] getClassesForPathTokens(Class<?> clazz,
String path,
boolean unwrapCollectionTypes)
clazz - Class to checkpath - Path to checkunwrapCollectionTypes - if true returns the parameterized collection type
public static String subPath(String path,
Integer startToken,
Integer endToken)
path - the original pathstartToken - The first token index, inclusive: if null, the first token.endToken - The last token index, inclusive: if null, the last token.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||