Package com.gentics.api.lib.resolving
Interface Resolvable
-
- All Known Subinterfaces:
GenticsUser
public interface Resolvable
Interface for objects that provide properties by resolving property paths.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canResolve()
Check whether the resolvable is capable of resolving properties right now.Object
get(String key)
Get the property named by key or null if the property does not exist or is not set.Object
getProperty(String key)
Get the property named by key or null if the property does not exist or is not set.
-
-
-
Method Detail
-
getProperty
Object getProperty(String key)
Get the property named by key or null if the property does not exist or is not set. Alias forget(String)
.- Parameters:
key
- key of the property- Returns:
- value of the property or null
-
get
Object get(String key)
Get the property named by key or null if the property does not exist or is not set.- Parameters:
key
- key of the property- Returns:
- value of the property or null
-
canResolve
boolean canResolve()
Check whether the resolvable is capable of resolving properties right now. If this method returns false all calls togetProperty(String)
orget(String)
will return null.- Returns:
- true when the resolvable can resolve properties. false if not
-
-