com.gentics.api.lib.resolving
Interface Resolvable

All Known Subinterfaces:
Changeable, DatasourceRow, GenticsPlugin, GenticsPortlet, GenticsUser
All Known Implementing Classes:
AbstractGenticsPlugin, AbstractGenticsPortlet, ChangeableBean, ExpressionEvaluator, FileInformation, GenticsPortletContext, JSONResolvable, Language, PropertyResolver, PropertySetter, ResolvableBean, ViewPlugin

public interface Resolvable

Interface for objects that provide properties by resolving property paths.


Method Summary
 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 for get(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 to getProperty(String) or get(String) will return null.

Returns:
true when the resolvable can resolve properties. false if not


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.