code: @Override
      public boolean accept(final Node aNode) {
  
          // Only deal with Element nodes.
          if (aNode.getNodeType() != Node.ELEMENT_NODE) {
              return false;
          }
  
          // We should accept:
          //
          // 1) A simpleType Element
          // 2) An enumeration Element
          final Element theElement = (Element) aNode;
  
          final String localName = theElement.getLocalName();
          if (localName != null) {
  
              final String trimmed = localName.trim();
              return trimmed.equalsIgnoreCase("enumeration")
                      || trimmed.equalsIgnoreCase("simpleType");
          }
  
          /*
          <xs:simpleType name="foodPreference">
              <!-- ClassLocation JavaDocData insertion point -->
  
              <xs:restriction base="xs:string">
  
                  <!-- FieldLocation or MethodLocation JavaDocData insertion point (within child) -->
                  <xs:enumeration value="NONE"/>
  
                  <!-- FieldLocation or MethodLocation JavaDocData insertion point (within child) -->
                  <xs:enumeration value="LACTO_VEGETARIAN"/>
  
                  <!-- FieldLocation or MethodLocation JavaDocData insertion point (within child) -->
                  <xs:enumeration value="VEGAN"/>
  
              </xs:restriction>
          </xs:simpleType>
           */
  
          /*
    <xs:simpleType name="foodPreference">
      <xs:restriction base="xs:string">
        <xs:enumeration value="NONE"/>
        <xs:enumeration value="LACTO_VEGETARIAN"/>
        <xs:enumeration value="VEGAN"/>
      </xs:restriction>
    </xs:simpleType>
  
    <xs:simpleType name="americanCoin">
      <xs:restriction base="xs:int">
        <xs:enumeration value="25"/>
        <xs:enumeration value="1"/>
        <xs:enumeration value="5"/>
        <xs:enumeration value="10"/>
      </xs:restriction>
    </xs:simpleType>
          */
  
          // All done.
          return false;
      }
docs: <p>Only accept simpleTypes which are restrictions to either <code>xs:string</code> or <code>xs:integer</code>.
  The former is generated by JAXB when the Java Enum uses String values, and the latter is used
  for ordinal values.</p>
  
  {@inheritDoc}