public class CmsXmlContentProperty extends java.lang.Object implements java.io.Serializable
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.
Modifier and Type | Class and Description |
---|---|
static class |
CmsXmlContentProperty.PropType
Type constants.
|
static class |
CmsXmlContentProperty.XmlNode
XML node name constants.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_SEPARATOR
IDs separator constant.
|
Modifier | Constructor and Description |
---|---|
protected |
CmsXmlContentProperty()
Serialization constructor.
|
|
CmsXmlContentProperty(java.lang.String name,
java.lang.String type,
java.lang.String widget,
java.lang.String widgetConfiguration,
java.lang.String ruleRegex,
java.lang.String ruleType,
java.lang.String default1,
java.lang.String niceName,
java.lang.String description,
java.lang.String error,
java.lang.String preferFolder)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
CmsXmlContentProperty |
copy()
Copies this property definition.
|
java.lang.String |
getDefault()
Returns the default.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getError()
Returns the error.
|
java.lang.String |
getName()
Returns the property name.
|
java.lang.String |
getNiceName()
Returns the niceName.
|
java.lang.String |
getRuleRegex()
Returns the ruleRegex.
|
java.lang.String |
getRuleType()
Returns the rule type.
|
java.lang.String |
getSelectInherit()
Returns a value which indicates whether the user can control the inheritance of this property.
|
java.lang.String |
getType()
Returns the property type.
|
java.lang.String |
getWidget()
Returns the widget.
|
java.lang.String |
getWidgetConfiguration()
Returns the widgetConfiguration.
|
boolean |
isPreferFolder()
Returns the value of the "prefer folder" option.
|
CmsXmlContentProperty |
withDefaultWidget(java.lang.String defaultWidget)
Copies a property definition, but replaces an empty widget with a given widget.
|
CmsXmlContentProperty |
withNiceName(java.lang.String niceName)
Copies a property definition, but replaces the nice name attribute.
|
public static final java.lang.String PROP_SEPARATOR
public CmsXmlContentProperty(java.lang.String name, java.lang.String type, java.lang.String widget, java.lang.String widgetConfiguration, java.lang.String ruleRegex, java.lang.String ruleType, java.lang.String default1, java.lang.String niceName, java.lang.String description, java.lang.String error, java.lang.String preferFolder)
name
- the property nametype
- the property type (string|uri)widget
- the widgetwidgetConfiguration
- the widget configurationruleRegex
- the validation rule regexruleType
- the validation rule typedefault1
- the default valueniceName
- the nice-namedescription
- the descriptionerror
- the error messagepreferFolder
- the "prefer folder" optionprotected CmsXmlContentProperty()
public CmsXmlContentProperty copy()
public java.lang.String getDefault()
public java.lang.String getDescription()
public java.lang.String getError()
public java.lang.String getName()
public java.lang.String getNiceName()
public java.lang.String getRuleRegex()
public java.lang.String getRuleType()
public java.lang.String getSelectInherit()
public java.lang.String getType()
public java.lang.String getWidget()
public java.lang.String getWidgetConfiguration()
public boolean isPreferFolder()
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.
public CmsXmlContentProperty withDefaultWidget(java.lang.String defaultWidget)
defaultWidget
- the widget to use if the set widget is emptypublic CmsXmlContentProperty withNiceName(java.lang.String niceName)
niceName
- the new nice name attribute