code: @Override
      public StructValidator getSimpleValidator()
      {
          /* Can we create a simple validator? Yes, if the sub-specs are
           * all simple (leaves == element tokens with no arity modifier)
           */
          ContentSpec[] specs = mContentSpecs;
          int i = 0;
          int len = specs.length;
  
          for (; i < len; ++i) {
              if (!specs[i].isLeaf()) {
                  break;
              }
          }
  
          if (i == len) { // all leaves, kewl
              PrefixedName[] set = new PrefixedName[len];
              for (i = 0; i < len; ++i) {
                  TokenContentSpec ss = (TokenContentSpec) specs[i];
                  set[i] = ss.getName();
              }
              return new Validator(mArity, set);
          }
  
          // Nope, need a DFA:
          return null;
      }
docs: /*
  /////////////////////////////////////////////////
  Public API
  /////////////////////////////////////////////////