Package org.cip4.jdflib.core
Class JDFElement.EnumSettingsPolicy
- java.lang.Object
-
- org.apache.commons.lang.enums.Enum
-
- org.apache.commons.lang.enums.ValuedEnum
-
- org.cip4.jdflib.core.JDFElement.EnumSettingsPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Enclosing class:
- JDFElement
public static final class JDFElement.EnumSettingsPolicy extends org.apache.commons.lang.enums.ValuedEnumThe policy for this element indicates what happens when unsupported settings, (i.e., subelements, attributes or attribute values), are present in the element. Possible values are:- BestEffort - Substitute or ignore unsupported attributes, attribute values, default attribute values, or elements and continue processing the job.
- MustHonor - Reject the job when any unsupported attributes, attribute values, or elements are present.
- OperatorIntervention - Pause job and query the operator when any unsupported attributes, attribute values, or elements are present. If a device has no operator
intervention capabilities, OperatorIntervention is treated as MustHonor.
If not specified, SettingsPolicy is inherited from the parent element, and if not specified in the parent element or further superior element, the default value defaults to "BestEffort". In JDF 1.1 SettingsPolicy was specified in "Contents of a JDF node" and "Contents of the abstract Resource element". It has been removed from JDF node and Resource and been promoted to all JDF elements.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static JDFElement.EnumSettingsPolicyBestEffortstatic JDFElement.EnumSettingsPolicyMustHonorstatic JDFElement.EnumSettingsPolicyOperatorIntervention
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JDFElement.EnumSettingsPolicygetEnum(int enumValue)static JDFElement.EnumSettingsPolicygetEnum(java.lang.String enumName)static java.util.ListgetEnumList()static java.util.MapgetEnumMap()static java.util.Iteratoriterator()-
Methods inherited from class org.apache.commons.lang.enums.ValuedEnum
compareTo, getEnum, getValue, toString
-
-
-
-
Field Detail
-
BestEffort
public static final JDFElement.EnumSettingsPolicy BestEffort
-
MustHonor
public static final JDFElement.EnumSettingsPolicy MustHonor
-
OperatorIntervention
public static final JDFElement.EnumSettingsPolicy OperatorIntervention
-
-
Method Detail
-
getEnum
public static JDFElement.EnumSettingsPolicy getEnum(java.lang.String enumName)
- Parameters:
enumName- the name of the enum object to return- Returns:
- the enum object if enumName is valid. Otherwise null
-
getEnum
public static JDFElement.EnumSettingsPolicy getEnum(int enumValue)
- Parameters:
enumValue- the value of the enum object to return- Returns:
- the enum object if enumName is valid. Otherwise null
-
getEnumMap
public static java.util.Map getEnumMap()
- Returns:
- a map of all orientation enums
-
getEnumList
public static java.util.List getEnumList()
- Returns:
- a list of all orientation enums
-
iterator
public static java.util.Iterator iterator()
- Returns:
- an iterator over the enum objects
-
-