com.gentics.api.lib.resolving
Class ResolvableBean

java.lang.Object
  extended by com.gentics.api.lib.resolving.ResolvableBean
All Implemented Interfaces:
Resolvable, java.io.Serializable
Direct Known Subclasses:
ChangeableBean, FileInformation

public abstract class ResolvableBean
extends java.lang.Object
implements Resolvable, java.io.Serializable

ChangeableBean serves as base class for JavaBeans that need to be Resolvable. The implementation of the Resolvable interface maps properties to the corresponding getter methods (when they exist). To use this JavaBean integration into Portal.Node, simply let your BeanObject extend this class and create getter methods for all properties. When your bean should be Changeable you should rather extend ChangeableBean

Author:
norbert
See Also:
Serialized Form

Constructor Summary
ResolvableBean()
           
 
Method Summary
 boolean canResolve()
          Check whether the resolvable is capable of resolving properties right now.
 java.lang.Object get(java.lang.String key)
          Get the property named by key or null if the property does not exist or is not set.
 java.lang.Object getProperty(java.lang.String key)
          Get the property named by key or null if the property does not exist or is not set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolvableBean

public ResolvableBean()
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: Resolvable
Get the property named by key or null if the property does not exist or is not set. Alias for Resolvable.get(String).

Specified by:
getProperty in interface Resolvable
Parameters:
key - key of the property
Returns:
value of the property or null

get

public java.lang.Object get(java.lang.String key)
Description copied from interface: Resolvable
Get the property named by key or null if the property does not exist or is not set.

Specified by:
get in interface Resolvable
Parameters:
key - key of the property
Returns:
value of the property or null

canResolve

public boolean canResolve()
Description copied from interface: Resolvable
Check whether the resolvable is capable of resolving properties right now.
if this method returns false all calls to Resolvable.getProperty(String) or Resolvable.get(String) will return null.

Specified by:
canResolve in interface Resolvable
Returns:
true when the resolvable can resolve properties. false if not


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.