public Validate ( InputNode node ) : bool | ||
node | InputNode | /// this is the node to read the key value from /// |
return | bool |
public bool Validate(InputNode node) {
Position line = node.getPosition();
Class expect = type.Type;
String name = entry.Key;
if(name == null) {
name = context.GetName(expect);
}
if(entry.IsAttribute()) {
throw new ElementException("Can not have %s as an attribute at %s", expect, line);
}
return Validate(node, name);
}
/// <summary>
CompositeKey::Validate ( InputNode node, String key ) : bool |