public interface AttributeFactory
isObsolete(boolean subprocessScope), one must supply
the value for the parameter subprocessScope when creating
an attribute. The following general rules apply for all methods using
parameters:
new Integer(5) or as simple value 5!
put("Hello", "World") would do.
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getAvailableComplexAttributes()
Retrieves the set of complex attributes (i.e. annotated methods
that do not return a primitive type or collection) of the
class that is currently being navigated
|
java.util.Set<java.lang.String> |
getAvailablePrimitiveAttributes()
Retrieves the set of primitive attributes (i.e. annotated methods
that return a primitive type or collection) of the
class that is currently being navigated
|
java.lang.String |
getCurrentPathAsString()
Retrieves a string representation of the currently selected attribute path
|
AttributeFactory |
getFactoryForCollectionAttribute(java.lang.String primitiveMethod)
Creates an AttributeFactory for the inner type of the given
collection attribute.
|
AttributeFactory |
goDown(java.lang.String complexMethod)
Adds the supplied method to the method call path and navigates
to the class of its return type.
|
AttributeFactory |
goDown(java.lang.String complexMethod,
java.lang.Object... parameters)
The same as
goDown(String) but going down by passing the given
parameters to the method. |
AttributeFactory |
goDownAndCast(java.lang.String complexMethod,
java.lang.Class<?> desiredType)
Adds the supplied method to the method call path and navigates to the class
of the desired type.
|
AttributeFactory |
goDownAndCast(java.lang.String complexMethod,
java.lang.Class<?> desiredType,
java.lang.Object... parameters)
The same as
goDownAndCast(String, Class) but going down by
passing the given parameters to the method. |
AttributeFactory |
goUp()
Deletes the last element of the method call path and
navigates to the class that owns this method
|
Attribute |
selectAttribute(java.lang.String primitiveMethod)
Finishes an attribute by adding the supplied primitive method
to the method call path and generating an Attribute object
|
Attribute |
selectAttribute(java.lang.String primitiveMethod,
java.io.Serializable... parameters)
The same as
selectAttribute(String) but selecting by passing
the given parameters to the method. |
Attribute |
selectAttributeAndCast(java.lang.String primitiveMethod,
java.lang.Class<?> desiredType)
Finishes an attribute by adding the supplied primitive method
to the method call path and generating an Attribute object.
|
Attribute |
selectAttributeAndCast(java.lang.String primitiveMethod,
java.lang.Class<?> desiredType,
java.io.Serializable... parameters)
The same as
selectAttributeAndCast(String, Class) but selecting
by passing the given parameters to the method. |
AttributeFactory |
startNewAttribute()
Tells the factory to start a new attribute.
|
AttributeFactory startNewAttribute()
java.util.Set<java.lang.String> getAvailableComplexAttributes()
java.util.Set<java.lang.String> getAvailablePrimitiveAttributes()
AttributeFactory goDown(java.lang.String complexMethod)
complexMethod - an element of the map returned by
getAvailableComplesAttributes()AttributeFactory goDown(java.lang.String complexMethod, java.lang.Object... parameters)
goDown(String) but going down by passing the given
parameters to the method. Cf. AttributeFactory for details on
parameters.complexMethod - parameters - AttributeFactory goDownAndCast(java.lang.String complexMethod, java.lang.Class<?> desiredType)
complexMethod - an element of the map returned by
getAvailableComplesAttributes()desiredType - The type the attribute should be casted to. If null the
return type of the attribute is usedAttributeFactory goDownAndCast(java.lang.String complexMethod, java.lang.Class<?> desiredType, java.lang.Object... parameters)
goDownAndCast(String, Class) but going down by
passing the given parameters to the method. Cf. AttributeFactory
for details on parameters.complexMethod - desiredType - parameters - AttributeFactory goUp()
Attribute selectAttribute(java.lang.String primitiveMethod)
primitiveMethod - an element of the map returned by
getAvailablePrimitiveAttributes()Attribute selectAttribute(java.lang.String primitiveMethod, java.io.Serializable... parameters)
selectAttribute(String) but selecting by passing
the given parameters to the method. Cf. AttributeFactory
for details on parameters.primitiveMethod - parameters - Attribute selectAttributeAndCast(java.lang.String primitiveMethod, java.lang.Class<?> desiredType)
primitiveMethod - an element of the map returned by
getAvailablePrimitiveAttributes()desiredType - The type the attribute should be casted to.
If null the return type of the attribute is used.Attribute selectAttributeAndCast(java.lang.String primitiveMethod, java.lang.Class<?> desiredType, java.io.Serializable... parameters)
selectAttributeAndCast(String, Class) but selecting
by passing the given parameters to the method. Cf. AttributeFactory
for details on parameters.primitiveMethod - desiredType - parameters - AttributeFactory getFactoryForCollectionAttribute(java.lang.String primitiveMethod)
primitiveMethod - java.lang.String getCurrentPathAsString()