rootNode = new Node();\r
}\r
\r
- public void check(ConfigNode aNode) throws ConfigException {\r
+ public void check(ConfigNode aNode) throws ConfigFailure {\r
getRootNode().check(aNode);\r
}\r
\r
addTypeConstraint(aPropertyName, aType);\r
}\r
\r
- public void check(ConfigNode aNode) throws ConfigException {\r
+ public void check(ConfigNode aNode) throws ConfigFailure {\r
Iterator iterator;\r
\r
iterator=constraints.iterator();\r
propertyName=aPropertyName;\r
}\r
\r
- public void check(ConfigNode aNode) throws ConfigException {\r
+ public void check(ConfigNode aNode) throws ConfigFailure {\r
};\r
}\r
\r
super(aPropertyName);\r
}\r
\r
- public void check(ConfigNode aNode) throws ConfigException {\r
+ public void check(ConfigNode aNode) throws ConfigFailure {\r
aNode.getRequiredStringProperty(propertyName);\r
};\r
}\r
type=aType;\r
}\r
\r
- public void check(ConfigNode aNode) throws ConfigException {\r
+ public void check(ConfigNode aNode) throws ConfigFailure {\r
switch(type) {\r
case INTEGER:\r
aNode.getOptionalIntegerProperty(propertyName, new Integer(0));\r
aNode.getOptionalBooleanProperty(propertyName, Boolean.FALSE);\r
break;\r
default:\r
- throw new ConfigException("Invalid value for type in type constraint: "+new Integer(type).toString());\r
+ throw new ConfigFailure("Invalid value for type in type constraint: "+new Integer(type).toString());\r
}\r
}\r
}\r