Package org.opencms.xml.content
Enum CmsXmlContentProperty.Visibility
- java.lang.Object
-
- java.lang.Enum<CmsXmlContentProperty.Visibility>
-
- org.opencms.xml.content.CmsXmlContentProperty.Visibility
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CmsXmlContentProperty.Visibility>
- Enclosing class:
- CmsXmlContentProperty
public static enum CmsXmlContentProperty.Visibility extends java.lang.Enum<CmsXmlContentProperty.Visibility>
The property visibility options.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description element
Visible only on the element.elementAndParentIndividual
Visible in both element and list parent as an individual setting.elementAndParentShared
Visible in both element and list parent as a shared setting.parentIndividual
Visible only on list parent, as individual setting.parentShared
Visible only on list parent, as shared setting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isVisibleOnElement()
True if it should be visible on the element itself.static CmsXmlContentProperty.Visibility
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CmsXmlContentProperty.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
element
public static final CmsXmlContentProperty.Visibility element
Visible only on the element.
-
elementAndParentIndividual
public static final CmsXmlContentProperty.Visibility elementAndParentIndividual
Visible in both element and list parent as an individual setting.
-
elementAndParentShared
public static final CmsXmlContentProperty.Visibility elementAndParentShared
Visible in both element and list parent as a shared setting.
-
parentIndividual
public static final CmsXmlContentProperty.Visibility parentIndividual
Visible only on list parent, as individual setting.
-
parentShared
public static final CmsXmlContentProperty.Visibility parentShared
Visible only on list parent, as shared setting.
-
-
Method Detail
-
values
public static CmsXmlContentProperty.Visibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmsXmlContentProperty.Visibility c : CmsXmlContentProperty.Visibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmsXmlContentProperty.Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isVisibleOnElement
public boolean isVisibleOnElement()
True if it should be visible on the element itself.- Returns:
- true if visible on the element
-
-