SimpleFramework.Xml.Core.CompositeKey.Validate C# (CSharp) 메소드

Validate() 공개 메소드

This method is used to read the key value from the node. The value read from the node is resolved using the template filter. If the key value can not be found according to the annotation attributes then null is assumed and the node is valid.
public Validate ( InputNode node ) : bool
node InputNode /// this is the node to read the key value from ///
리턴 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>

Same methods

CompositeKey::Validate ( InputNode node, String key ) : bool