Exemple #1
0
  public void read(WsdlParser parser) throws WsdlParseException {
    value = parser.getAttributeValue(null, VALUE);

    int eventType = parser.getEventType();

    while (true) {
      if (eventType == XmlInputStream.START_TAG) {
      } else if (eventType == XmlInputStream.END_TAG) {
        String name = parser.getName();
        String namespace = parser.getNamespace();

        if (ENUMERATION.equals(name) && SCHEMA_NS.equals(namespace)) {
          return;
        }
      } else if (eventType == XmlInputStream.END_DOCUMENT) {
        throw new WsdlParseException("Failed to find end tag for 'enumeration'");
      }

      eventType = parser.next();
    }
  }