|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang.enums.Enum
org.apache.commons.lang.enums.ValuedEnum
org.cip4.jdflib.core.JDFElement.EnumValidationLevel
public static final class JDFElement.EnumValidationLevel
Enumeration for validation level
- level ValidationLevel_NoWarnIncomplete: Ignore warnings and don't require all required parameters
- level ValidationLevel_NoWarnComplete: Ignore warnings and require all required parameters
- level ValidationLevel_Incomplete: incomplete elements are valid
- level ValidationLevel_Complete: full validation of an individual resource
- level ValidationLevel_RecursiveIncomplete: incomplete validation of an individual resource and all of its child elements - e.g. for pools
- level ValidationLevel_RecursiveComplete: full validation of an individual resource and all of its child elements - e.g. for pools
| Field Summary | |
|---|---|
static JDFElement.EnumValidationLevel |
Complete
show warnings and require all traits |
static JDFElement.EnumValidationLevel |
Incomplete
show warnings and allow missing traits |
private static int |
m_startValue
|
static JDFElement.EnumValidationLevel |
NoWarnComplete
ignore warnings and require all traits |
static JDFElement.EnumValidationLevel |
NoWarnIncomplete
ignore warnings and allow missing traits |
static JDFElement.EnumValidationLevel |
RecursiveComplete
show warnings and require all traits - also recurse referenced elements |
static JDFElement.EnumValidationLevel |
RecursiveIncomplete
show warnings and allow missing traits- also recurse referenced elements |
private static long |
serialVersionUID
|
| Fields inherited from class org.apache.commons.lang.enums.Enum |
|---|
iToString |
| Constructor Summary | |
|---|---|
protected |
JDFElement.EnumValidationLevel(java.lang.String name)
|
| Method Summary | |
|---|---|
static JDFElement.EnumValidationLevel |
getEnum(int enumValue)
|
static JDFElement.EnumValidationLevel |
getEnum(java.lang.String enumName)
|
static java.util.List |
getEnumList()
|
static java.util.Map |
getEnumMap()
|
static JDFElement.EnumValidationLevel |
incompleteLevel(JDFElement.EnumValidationLevel level)
calculate the corresponding incomplete level based on level |
static boolean |
isNoWarn(JDFElement.EnumValidationLevel vl)
return true if vl is a recursvive EnumValidationLevel |
static boolean |
isRecursive(JDFElement.EnumValidationLevel vl)
return true if vl is a recursvive EnumValidationLevel |
static boolean |
isRequired(JDFElement.EnumValidationLevel level)
returns true if the enumeration level is either Complete, NoWarnComplete or RecursiveComplete, i.e. |
static java.util.Iterator |
iterator()
|
static JDFElement.EnumValidationLevel |
setNoWarning(JDFElement.EnumValidationLevel level,
boolean noWarning)
calculate the corresponding nowarn level based on level |
| Methods inherited from class org.apache.commons.lang.enums.ValuedEnum |
|---|
compareTo, getEnum, getValue, toString |
| Methods inherited from class org.apache.commons.lang.enums.Enum |
|---|
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private static int m_startValue
public static final JDFElement.EnumValidationLevel NoWarnIncomplete
public static final JDFElement.EnumValidationLevel NoWarnComplete
public static final JDFElement.EnumValidationLevel Incomplete
public static final JDFElement.EnumValidationLevel Complete
public static final JDFElement.EnumValidationLevel RecursiveIncomplete
public static final JDFElement.EnumValidationLevel RecursiveComplete
| Constructor Detail |
|---|
protected JDFElement.EnumValidationLevel(java.lang.String name)
| Method Detail |
|---|
public static JDFElement.EnumValidationLevel getEnum(java.lang.String enumName)
enumName -
public static JDFElement.EnumValidationLevel getEnum(int enumValue)
enumValue -
public static java.util.Map getEnumMap()
public static java.util.List getEnumList()
public static java.util.Iterator iterator()
public static boolean isRecursive(JDFElement.EnumValidationLevel vl)
vl - the EnumValidationLevel to check
public static boolean isNoWarn(JDFElement.EnumValidationLevel vl)
vl - the EnumValidationLevel to check
public static boolean isRequired(JDFElement.EnumValidationLevel level)
level - the level to check
public static JDFElement.EnumValidationLevel setNoWarning(JDFElement.EnumValidationLevel level,
boolean noWarning)
level - the level to strip warnings fromnoWarning - if true, set to nowarne, else set to standard
public static JDFElement.EnumValidationLevel incompleteLevel(JDFElement.EnumValidationLevel level)
level - the level to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||