public class CmsPropertyConfig extends java.lang.Object implements I_CmsConfigurationObject<CmsPropertyConfig>, java.lang.Cloneable
(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.)
DEFAULT_ORDER
Constructor and Description |
---|
CmsPropertyConfig(CmsXmlContentProperty propData,
boolean disabled)
Creates a new propery configuration bean.
|
CmsPropertyConfig(CmsXmlContentProperty propData,
boolean disabled,
int order)
Creates a new property configuration bean.
|
Modifier and Type | Method and Description |
---|---|
CmsPropertyConfig |
clone() |
java.lang.String |
getKey()
The name of the configuration object.
|
java.lang.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.
|
public CmsPropertyConfig(CmsXmlContentProperty propData, boolean disabled)
propData
- the property datadisabled
- true if this property is disabledpublic CmsPropertyConfig(CmsXmlContentProperty propData, boolean disabled, int order)
propData
- the property datadisabled
- true if this property is disabledorder
- the number used for sorting the property configurationspublic CmsPropertyConfig clone()
clone
in class java.lang.Object
Object.clone()
public java.lang.String getKey()
I_CmsConfigurationObject
This name should be unique for each single configuration
getKey
in interface I_CmsConfigurationObject<CmsPropertyConfig>
I_CmsConfigurationObject.getKey()
public java.lang.String getName()
public int getOrder()
public CmsXmlContentProperty getPropertyData()
public boolean isDisabled()
isDisabled
in interface I_CmsConfigurationObject<CmsPropertyConfig>
public CmsPropertyConfig merge(CmsPropertyConfig child)
I_CmsConfigurationObject
merge
in interface I_CmsConfigurationObject<CmsPropertyConfig>
child
- the child configuration objectI_CmsConfigurationObject.merge(org.opencms.ade.configuration.I_CmsConfigurationObject)