/*      */ public static boolean isXsNode(Node node, String nameName) /*      */ {
   /* 1366 */ return (node.getLocalName().equals(nameName))
       && (Constants.isSchemaXSD(node.getNamespaceURI()));
   /*      */ }
 /*      */ public static Vector getEnumerationBaseAndValues(Node node, SymbolTable symbolTable)
       /*      */ {
   /*  320 */ if (node == null) {
     /*  321 */ return null;
     /*      */ }
   /*      */
   /*  325 */ QName nodeKind = getNodeQName(node);
   /*      */ NodeList children;
   /*      */ Node simpleNode;
   /*      */ int j;
   /*  327 */ if ((nodeKind != null)
       && (nodeKind.getLocalPart().equals("element"))
       && (Constants.isSchemaXSD(nodeKind.getNamespaceURI())))
   /*      */ {
     /*  329 */ children = node.getChildNodes();
     /*  330 */ simpleNode = null;
     /*      */
     /*  332 */ for (j = 0; (j < children.getLength()) && (simpleNode == null); )
     /*      */ {
       /*  334 */ QName simpleKind = getNodeQName(children.item(j));
       /*      */
       /*  336 */ if ((simpleKind != null)
           && (simpleKind.getLocalPart().equals("simpleType"))
           && (Constants.isSchemaXSD(simpleKind.getNamespaceURI())))
       /*      */ {
         /*  340 */ simpleNode = children.item(j);
         /*  341 */ node = simpleNode;
         /*      */ }
       /*  333 */ j++;
       /*      */ }
     /*      */
     /*      */ }
   /*      */
   /*  347 */ nodeKind = getNodeQName(node);
   /*      */
   /*  349 */ if ((nodeKind != null)
       && (nodeKind.getLocalPart().equals("simpleType"))
       && (Constants.isSchemaXSD(nodeKind.getNamespaceURI())))
   /*      */ {
     /*  354 */ NodeList children = node.getChildNodes();
     /*  355 */ Node restrictionNode = null;
     /*      */
     /*  357 */ int j = 0;
     /*  358 */ while ((j < children.getLength()) && (restrictionNode == null))
     /*      */ {
       /*  360 */ QName restrictionKind = getNodeQName(children.item(j));
       /*      */
       /*  362 */ if ((restrictionKind != null)
           && (restrictionKind.getLocalPart().equals("restriction"))
           && (Constants.isSchemaXSD(restrictionKind.getNamespaceURI())))
       /*      */ {
         /*  366 */ restrictionNode = children.item(j);
         /*      */ }
       /*  359 */ j++;
       /*      */ }
     /*      */
     /*  373 */ TypeEntry baseEType = null;
     /*      */
     /*  375 */ if (restrictionNode != null) {
       /*  376 */ QName baseType = getTypeQName(restrictionNode, new BooleanHolder(), false);
       /*      */
       /*  379 */ baseEType = symbolTable.getType(baseType);
       /*      */
       /*  381 */ if (baseEType != null) {
         /*  382 */ String javaName = baseEType.getName();
         /*      */
         /*  384 */ if ((javaName.equals("boolean"))
             || (!SchemaUtils.isSimpleSchemaType(baseEType.getQName())))
         /*      */ {
           /*  387 */ baseEType = null;
           /*      */ }
         /*      */ }
       /*      */
       /*      */ }
     /*      */
     /*  393 */ if ((baseEType != null) && (restrictionNode != null)) {
       /*  394 */ Vector v = new Vector();
       /*  395 */ NodeList enums = restrictionNode.getChildNodes();
       /*      */
       /*  397 */ for (int i = 0; i < enums.getLength(); i++) {
         /*  398 */ QName enumKind = getNodeQName(enums.item(i));
         /*      */
         /*  400 */ if ((enumKind == null)
             || (!enumKind.getLocalPart().equals("enumeration"))
             || (!Constants.isSchemaXSD(enumKind.getNamespaceURI())))
         /*      */ {
           /*      */ continue;
           /*      */ }
         /*      */
         /*  406 */ Node enumNode = enums.item(i);
         /*  407 */ String value = getAttribute(enumNode, "value");
         /*      */
         /*  409 */ if (value != null) {
           /*  410 */ v.add(value);
           /*      */ }
         /*      */
         /*      */ }
       /*      */
       /*  416 */ if (v.isEmpty()) {
         /*  417 */ return null;
         /*      */ }
       /*      */
       /*  421 */ v.add(0, baseEType);
       /*      */
       /*  423 */ return v;
       /*      */ }
     /*      */ }
   /*      */
   /*  427 */ return null;
   /*      */ }