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
Modifier and TypeMethodDescriptionboolean
Check whether the resolvable is capable of resolving properties right now.Get the property named by key or null if the property does not exist or is not set.getProperty
(String key) Get the property named by key or null if the property does not exist or is not set.
-
Method Details
-
getProperty
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
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
-