Enum Class ExportScope
- All Implemented Interfaces:
Serializable
,Comparable<ExportScope>
,Constable
Represents the valid scopes for an XML Export.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Indicates an invalid export scope.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExportScope
getScopeFromPropertyValue
(String string) Return an ExportScope for the given string.This is the string that represents the scope in the exportDescriptor.properties file.static ExportScope
Returns the enum constant of this class with the specified name.static ExportScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE
-
SPACE
-
ALL
-
SITE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getString
This is the string that represents the scope in the exportDescriptor.properties file. -
getScopeFromPropertyValue
public static ExportScope getScopeFromPropertyValue(String string) throws ExportScope.IllegalExportScopeException Return an ExportScope for the given string.- Parameters:
string
- the string that would be used to represent the scope in the exportDescriptor.properties file.- Returns:
- the appropriate ExportScope
- Throws:
ExportScope.IllegalExportScopeException
- if no matching scope was found for the string.
-