Examples of ErrorLocatorImpl


Examples of org.apache.woden.internal.ErrorLocatorImpl

        }
        catch (NumberFormatException e)
        {
            setValid(false);
            getErrorReporter().reportError(
                    new ErrorLocatorImpl()//TODO line&col nos.
                    "WSDL512",
                    new Object[] {attrValue},
                    ErrorReporter.SEVERITY_ERROR,
                    e);
        }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

    HTTPAuthenticationScheme scheme = null;

    if (attrValue == null) {
      setValid(false);
      getErrorReporter().reportError(new ErrorLocatorImpl(), // TODO
          // line&col
          // nos.
          "WSDL508", new Object[] { attrValue },
          ErrorReporter.SEVERITY_ERROR);
    } else if (attrValue.equals(HTTPAuthenticationScheme.BASIC.toString())) {

      setValid(true);
      scheme = HTTPAuthenticationScheme.BASIC;
    } else if (attrValue.equals(HTTPAuthenticationScheme.DIGEST.toString())) {

      setValid(true);
      scheme = HTTPAuthenticationScheme.DIGEST;
    } else {

      setValid(false);
      getErrorReporter().reportError(new ErrorLocatorImpl(), // TODO
          // line&col
          // nos.
          "WSDL508", new Object[] { attrValue },
          ErrorReporter.SEVERITY_ERROR);
    }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

       
        if(qn == null)
        {
            setValid(false);
            getErrorReporter().reportError(
                    new ErrorLocatorImpl()//TODO line&col nos.
                    "WSDL507",              //TODO chg to WSDL505 and test
                    new Object[] {attrValue},
                    ErrorReporter.SEVERITY_ERROR,
                    ex);
        }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

      }
    }

    // TODO: line&col nos.
    // TODO: use correct error number
    getErrorReporter().reportError(new ErrorLocatorImpl(), "WSDL510",
        new Object[] { attrValue }, ErrorReporter.SEVERITY_ERROR,
        new IllegalArgumentException());

    return null;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

      qname = ownerEl.getQName(qnameStr);
    } catch (WSDLException e) {

      // TODO: line&col nos.
      // TODO: use correct error number
      getErrorReporter().reportError(new ErrorLocatorImpl(), "WSDL510",
          new Object[] { qnameStr }, ErrorReporter.SEVERITY_ERROR, e);
    }

    return qname;
  }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

            }
        }

    // TODO: line&col nos.
    // TODO: use correct error number
    getErrorReporter().reportError(new ErrorLocatorImpl(), "WSDL510",
        new Object[] { directionStr }, ErrorReporter.SEVERITY_ERROR,
        new IllegalArgumentException());

    return null;
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

       
        if(attrValue == null || !attrValue.equals(bool.toString()) )
        {
            setValid(false);
            getErrorReporter().reportError(
                    new ErrorLocatorImpl()//TODO line&col nos.
                    "WSDL511",
                    new Object[] {attrValue},
                    ErrorReporter.SEVERITY_ERROR);
        }
       
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

       
        if(uri == null)
        {
            setValid(false);
            getErrorReporter().reportError(
                    new ErrorLocatorImpl()//TODO line&col nos.
                    "WSDL506",
                    new Object[] {attrValue},
                    ErrorReporter.SEVERITY_ERROR,
                    ex);
        }
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

      QName name = interfaces[i].getName();
      if(name == null)
        continue;
      if(names.contains(name)) {
        try {
          wodenCtx.getErrorReporter().reportError(new ErrorLocatorImpl(), ID, new Object[]{name}, ErrorReporter.SEVERITY_ERROR);
        }catch(WSDLException e) {
          //TODO: Log problem reporting error.
        }
      }
      else {
View Full Code Here

Examples of org.apache.woden.internal.ErrorLocatorImpl

  public void validate(Object target, WodenContext wodenCtx) throws WSDLException {
    Interface interfac = (Interface)target;
    Interface[] extendedInterfaces = interfac.getExtendedInterfaces();
    if(containsInterface(interfac, extendedInterfaces)) {
      try {
        wodenCtx.getErrorReporter().reportError(new ErrorLocatorImpl(), ID , new Object[]{interfac.getName()}, ErrorReporter.SEVERITY_ERROR);
      }catch(WSDLException e) {
        //TODO: Log problem reporting error.
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.