org.opencms.ade.configuration
Class CmsPropertyConfig

java.lang.Object
  extended by org.opencms.ade.configuration.CmsPropertyConfig
All Implemented Interfaces:
I_CmsConfigurationObject<CmsPropertyConfig>

public class CmsPropertyConfig
extends Object
implements I_CmsConfigurationObject<CmsPropertyConfig>

This class represents the property configuration for a sitemap region.

(This is mostly a wrapper around CmsXmlContentProperty. We don't use that class directly because we may want to put server-specific logic in here, and CmsXmlContentProperty is used as a bean for RPC data transfer to the client.)

Since:
8.0.1
Version:
$Revision: 1.0 $
Author:
Georg Westenberger

Field Summary
 
Fields inherited from interface org.opencms.ade.configuration.I_CmsConfigurationObject
DEFAULT_ORDER
 
Constructor Summary
CmsPropertyConfig(CmsXmlContentProperty propData, boolean disabled)
          Creates a new propery configuration bean.
CmsPropertyConfig(CmsXmlContentProperty propData, boolean disabled, int order)
          Creates a new property configuration bean.
 
Method Summary
 CmsPropertyConfig clone()
           
 String getKey()
          The name of the configuration object.
 String getName()
          Gets the name of the property.
 int getOrder()
          Gets the order.
 CmsXmlContentProperty getPropertyData()
          Returns the property configuration data.
 boolean isDisabled()
          Returns true if the entry disables a property, rather than adding it.
 CmsPropertyConfig merge(CmsPropertyConfig child)
          Merges this configuration object with a child configuration object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsPropertyConfig

public CmsPropertyConfig(CmsXmlContentProperty propData,
                         boolean disabled)
Creates a new propery configuration bean.

Parameters:
propData - the property data
disabled - true if this property is disabled

CmsPropertyConfig

public CmsPropertyConfig(CmsXmlContentProperty propData,
                         boolean disabled,
                         int order)
Creates a new property configuration bean.

Parameters:
propData - the property data
disabled - true if this property is disabled
order - the number used for sorting the property configurations
Method Detail

clone

public CmsPropertyConfig clone()
Overrides:
clone in class Object
See Also:
Object.clone()

getKey

public String getKey()
Description copied from interface: I_CmsConfigurationObject
The name of the configuration object.

This name should be unique for each single configuration

Specified by:
getKey in interface I_CmsConfigurationObject<CmsPropertyConfig>
Returns:
the name
See Also:
I_CmsConfigurationObject.getKey()

getName

public String getName()
Gets the name of the property.

Returns:
the name of the property

getOrder

public int getOrder()
Gets the order.

Returns:
the order

getPropertyData

public CmsXmlContentProperty getPropertyData()
Returns the property configuration data.

Returns:
the property configuration data

isDisabled

public boolean isDisabled()
Returns true if the entry disables a property, rather than adding it.

Specified by:
isDisabled in interface I_CmsConfigurationObject<CmsPropertyConfig>
Returns:
true if the property should be disabled

merge

public CmsPropertyConfig merge(CmsPropertyConfig child)
Description copied from interface: I_CmsConfigurationObject
Merges this configuration object with a child configuration object.

Specified by:
merge in interface I_CmsConfigurationObject<CmsPropertyConfig>
Parameters:
child - the child configuration object
Returns:
the merged configuration objects
See Also:
I_CmsConfigurationObject.merge(org.opencms.ade.configuration.I_CmsConfigurationObject)