Package com.eviware.soapui.impl.wadl.inference.schema

Examples of com.eviware.soapui.impl.wadl.inference.schema.Type


        else
          throw new XmlException( "Non-nillable element is nil!" );
      }
      context.putAttribute( "nil", "true" );
    }
    Type newType = type.validate( context );
    if( newType != type )
    {
      String problem = "Illegal content for element '" + name + "' with type '" + type.getName() + "'.";
      if( type instanceof TypeReferenceType
          || context.getHandler().callback( ConflictHandler.Event.MODIFICATION, ConflictHandler.Type.ELEMENT,
View Full Code Here


  }

  public void validate( Context context ) throws XmlException
  {
    context.getCursor().push();
    Type newType = type.validate( context );
    if( newType != type )
    {
      String problem = "Illegal value for attribute '" + name + "' with type '" + type.getName() + "'.";
      if( context.getHandler().callback( ConflictHandler.Event.MODIFICATION, ConflictHandler.Type.ATTRIBUTE,
          getName(), context.getPath(), "Illegal value." ) )
View Full Code Here

                    throw new XmlException("Non-nillable element is nil!");
                }
            }
            context.putAttribute("nil", "true");
        }
        Type newType = type.validate(context);
        if (newType != type) {
            String problem = "Illegal content for element '" + name + "' with type '" + type.getName() + "'.";
            if (type instanceof TypeReferenceType
                    || context.getHandler().callback(ConflictHandler.Event.MODIFICATION, ConflictHandler.Type.ELEMENT,
                    getName(), context.getPath(), "Illegal content.")) {
View Full Code Here

        this.type = type;
    }

    public void validate(Context context) throws XmlException {
        context.getCursor().push();
        Type newType = type.validate(context);
        if (newType != type) {
            String problem = "Illegal value for attribute '" + name + "' with type '" + type.getName() + "'.";
            if (context.getHandler().callback(ConflictHandler.Event.MODIFICATION, ConflictHandler.Type.ATTRIBUTE,
                    getName(), context.getPath(), "Illegal value.")) {
                type = newType;
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wadl.inference.schema.Type

Copyright © 2018 www.massapicom. 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.