Package org.opencms.ade.configuration
Class CmsPropertyConfig
java.lang.Object
org.opencms.ade.configuration.CmsPropertyConfig
- All Implemented Interfaces:
Cloneable,I_CmsConfigurationObject<CmsPropertyConfig>
public class CmsPropertyConfig
extends Object
implements I_CmsConfigurationObject<CmsPropertyConfig>, Cloneable
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
ConstructorsConstructorDescriptionCmsPropertyConfig(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
Modifier and TypeMethodDescriptionclone()cloneWithTop(boolean top) Creates a clone and sets the 'top' property in the clone.getKey()The name of the configuration object.getName()Gets the name of the property.intgetOrder()Gets the order.Returns the property configuration data.booleanReturns true if the entry disables a property, rather than adding it.booleanisTop()Returns true if this is a 'top property' which should be displayed near the top of a property list.merge(CmsPropertyConfig child) Merges this configuration object with a child configuration object.toString()
-
Constructor Details
-
CmsPropertyConfig
Creates a new propery configuration bean.- Parameters:
propData- the property datadisabled- true if this property is disabled
-
CmsPropertyConfig
Creates a new property configuration bean.- Parameters:
propData- the property datadisabled- true if this property is disabledorder- the number used for sorting the property configurations
-
-
Method Details
-
clone
-
cloneWithTop
Creates a clone and sets the 'top' property in the clone.- Parameters:
top- the value for the top property in the clone- Returns:
- the clone
-
getKey
Description copied from interface:I_CmsConfigurationObjectThe name of the configuration object.This name should be unique for each single configuration
- Specified by:
getKeyin interfaceI_CmsConfigurationObject<CmsPropertyConfig>- Returns:
- the name
- See Also:
-
getName
Gets the name of the property.- Returns:
- the name of the property
-
getOrder
Gets the order.- Returns:
- the order
-
getPropertyData
Returns the property configuration data.- Returns:
- the property configuration data
-
isDisabled
Returns true if the entry disables a property, rather than adding it.- Specified by:
isDisabledin interfaceI_CmsConfigurationObject<CmsPropertyConfig>- Returns:
- true if the property should be disabled
-
isTop
Returns true if this is a 'top property' which should be displayed near the top of a property list.- Returns:
- true if this is a top property
-
merge
Description copied from interface:I_CmsConfigurationObjectMerges this configuration object with a child configuration object.- Specified by:
mergein interfaceI_CmsConfigurationObject<CmsPropertyConfig>- Parameters:
child- the child configuration object- Returns:
- the merged configuration objects
- See Also:
-
toString
-