public class TabBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
ConfigType |
ct |
| Constructor and Description |
|---|
TabBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doACL(WithACL object,
JrdsDocument n,
JrdsElement roleElements)
Add a roles ACL to the object being build, but only if security was set in the properties.
|
protected List<Map<String,Object>> |
doDsList(String name,
JrdsElement node)
Extract the data store list from a DOM node, it must contains a list of ds elements
|
boolean |
setMethod(Iterable<JrdsElement> e,
Object o,
String method,
Class<?> argType)
Apply a method on a object with the value found in a collection of XML elements
If the element is null, the method does nothing.
|
boolean |
setMethod(JrdsElement e,
Object o,
String method)
Apply a method on a object with the value found in the XML element
If the element is null, the method does nothing.
|
boolean |
setMethod(JrdsElement element,
Object o,
String method,
Class<?> argType)
Apply a method on a object with the value found in the XML element.
|
public ConfigType ct
protected void doACL(WithACL object, JrdsDocument n, JrdsElement roleElements)
object - The object to add a role ton - The DOM tree where the xpath will look intoxpath - where to found the rolesprotected List<Map<String,Object>> doDsList(String name, JrdsElement node)
name - the name of the graph desc being buildnode - a DOM node wrapped in a JrdsNodepublic boolean setMethod(JrdsElement e, Object o, String method) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException
element - o - method - SecurityExceptionNoSuchMethodExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic boolean setMethod(Iterable<JrdsElement> e, Object o, String method, Class<?> argType) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException
element - o - method - argType - SecurityExceptionNoSuchMethodExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic boolean setMethod(JrdsElement element, Object o, String method, Class<?> argType) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException
If the element is null, the method does nothing.
The text value of the element is parsed to the type given in the argument argType. This type must have a constructor that take a String argument.
element - o - method - argType - SecurityExceptionNoSuchMethodExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationException