Package com.yahoo.config.codegen
Class LeafCNode.EnumLeaf
java.lang.Object
com.yahoo.config.codegen.CNode
com.yahoo.config.codegen.LeafCNode
com.yahoo.config.codegen.LeafCNode.EnumLeaf
- Enclosing class:
- LeafCNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.config.codegen.LeafCNode
LeafCNode.BooleanLeaf, LeafCNode.DoubleLeaf, LeafCNode.EnumLeaf, LeafCNode.FileLeaf, LeafCNode.IntegerLeaf, LeafCNode.LongLeaf, LeafCNode.ModelLeaf, LeafCNode.NoClassLeafCNode, LeafCNode.NoClassNoDefaultLeafCNode, LeafCNode.PathLeaf, LeafCNode.ReferenceLeaf, LeafCNode.StringLeaf, LeafCNode.UrlLeaf -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnumLeaf(InnerCNode parent, String name, String[] valArray) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDefaultValue(DefaultValue defaultValue) String[]Returns this enum's legal values.getType()Methods inherited from class com.yahoo.config.codegen.LeafCNode
getChild, getChildren, getDefaultValue, needRestart, newInstance, newInstance, setDefaultValue, setLeaf, setValueMethods inherited from class com.yahoo.config.codegen.CNode
checkMyName, getComment, getCommentBlock, getFullName, getMd5, getName, getNamespace, getPackage, getParent, getVersion, toString
-
Constructor Details
-
EnumLeaf
-
-
Method Details
-
getType
-
getLegalValues
Returns this enum's legal values. -
checkDefaultValue
- Overrides:
checkDefaultValuein classLeafCNode- Parameters:
defaultValue- the value to check.- Throws:
IllegalArgumentException- if the value is illegal according to the node type.
-