org.opencms.xml.content
Class CmsXmlContentProperty

java.lang.Object
  extended by org.opencms.xml.content.CmsXmlContentProperty
All Implemented Interfaces:
Serializable

public class CmsXmlContentProperty
extends Object
implements Serializable

Describes both VFS properties and Container Page Element settings, used by the GWT client.

Warning: This class is used by GWT client-side code (See GwtBase.gwt.xml for a list of classes used by GWT client-side code). If you change this class, either make sure that your changes are compatible with GWT, or write a separate client version of the class and put it into super_src.

Since:
8.0.0
See Also:
Serialized Form

Nested Class Summary
static class CmsXmlContentProperty.PropType
          Type constants.
static class CmsXmlContentProperty.XmlNode
          XML node name constants.
 
Field Summary
static String PROP_SEPARATOR
          IDs separator constant.
 
Constructor Summary
protected CmsXmlContentProperty()
          Serialization constructor.
  CmsXmlContentProperty(String name, String type, String widget, String widgetConfiguration, String ruleRegex, String ruleType, String default1, String niceName, String description, String error, String preferFolder)
          Public constructor.
 
Method Summary
 CmsXmlContentProperty copy()
          Copies this property definition.
 String getDefault()
          Returns the default.
 String getDescription()
          Returns the description.
 String getError()
          Returns the error.
 String getName()
          Returns the property name.
 String getNiceName()
          Returns the niceName.
 String getRuleRegex()
          Returns the ruleRegex.
 String getRuleType()
          Returns the rule type.
 String getSelectInherit()
          Returns a value which indicates whether the user can control the inheritance of this property.
 String getType()
          Returns the property type.
 String getWidget()
          Returns the widget.
 String getWidgetConfiguration()
          Returns the widgetConfiguration.
 boolean isPreferFolder()
          Returns the value of the "prefer folder" option.
 CmsXmlContentProperty withNiceName(String niceName)
          Copies a property definition, but replaces the nice name attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SEPARATOR

public static final String PROP_SEPARATOR
IDs separator constant.

See Also:
Constant Field Values
Constructor Detail

CmsXmlContentProperty

public CmsXmlContentProperty(String name,
                             String type,
                             String widget,
                             String widgetConfiguration,
                             String ruleRegex,
                             String ruleType,
                             String default1,
                             String niceName,
                             String description,
                             String error,
                             String preferFolder)
Public constructor.

Parameters:
name - the property name
type - the property type (string|uri)
widget - the widget
widgetConfiguration - the widget configuration
ruleRegex - the validation rule regex
ruleType - the validation rule type
default1 - the default value
niceName - the nice-name
description - the description
error - the error message
preferFolder - the "prefer folder" option

CmsXmlContentProperty

protected CmsXmlContentProperty()
Serialization constructor.

Method Detail

copy

public CmsXmlContentProperty copy()
Copies this property definition.

Returns:
a new copy of the current property definition

getDefault

public String getDefault()
Returns the default.

Returns:
the default

getDescription

public String getDescription()
Returns the description.

Returns:
the description

getError

public String getError()
Returns the error.

Returns:
the error

getNiceName

public String getNiceName()
Returns the niceName.

Returns:
the niceName

getName

public String getName()
Returns the property name.

Returns:
the property name

getType

public String getType()
Returns the property type.

Returns:
the property type

getRuleRegex

public String getRuleRegex()
Returns the ruleRegex.

Returns:
the ruleRegex

getRuleType

public String getRuleType()
Returns the rule type.

Returns:
the rule type

getSelectInherit

public String getSelectInherit()
Returns a value which indicates whether the user can control the inheritance of this property.

Returns:
the "select-inherit" property

getWidget

public String getWidget()
Returns the widget.

Returns:
the widget

getWidgetConfiguration

public String getWidgetConfiguration()
Returns the widgetConfiguration.

Returns:
the widgetConfiguration

isPreferFolder

public boolean isPreferFolder()
Returns the value of the "prefer folder" option.

This flag determines whether a property entered in the sitemap entry editor should be stored by default at the folder or at the default file of a sitemap entry. It only has an effect if the sitemap entry being edited doesn't already have a value for that property at either location.

Returns:
the "prefer folder" flag

withNiceName

public CmsXmlContentProperty withNiceName(String niceName)
Copies a property definition, but replaces the nice name attribute.

Parameters:
niceName - the new nice name attribute
Returns:
the copied property definition