Apache CXF API

org.apache.cxf.tools.validator.internal
Class SchemaValidator

java.lang.Object
  extended by org.apache.cxf.tools.validator.AbstractValidator
      extended by org.apache.cxf.tools.validator.internal.AbstractDefinitionValidator
          extended by org.apache.cxf.tools.validator.internal.SchemaValidator

public class SchemaValidator
extends AbstractDefinitionValidator


Field Summary
protected  String[] defaultSchemas
           
protected static Logger LOG
           
protected  String schemaLocation
           
 
Fields inherited from class org.apache.cxf.tools.validator.internal.AbstractDefinitionValidator
def, env
 
Fields inherited from class org.apache.cxf.tools.validator.AbstractValidator
errorMessages
 
Constructor Summary
SchemaValidator(List<InputSource> defaultSchemas, String wsdl, String[] schemas)
           
SchemaValidator(String schemaDir)
           
SchemaValidator(String schemaDir, String wsdl, String[] schemas)
           
 
Method Summary
 boolean isValid()
           
 boolean validate(InputSource wsdlsource, String[] schemas)
           
 boolean validate(String wsdlsource, String[] schemas)
           
 
Methods inherited from class org.apache.cxf.tools.validator.internal.AbstractDefinitionValidator
addError, getBus
 
Methods inherited from class org.apache.cxf.tools.validator.AbstractValidator
addErrorMessage, getErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

defaultSchemas

protected String[] defaultSchemas

schemaLocation

protected String schemaLocation
Constructor Detail

SchemaValidator

public SchemaValidator(String schemaDir)
                throws ToolException
Throws:
ToolException

SchemaValidator

public SchemaValidator(String schemaDir,
                       String wsdl,
                       String[] schemas)
                throws ToolException
Throws:
ToolException

SchemaValidator

public SchemaValidator(List<InputSource> defaultSchemas,
                       String wsdl,
                       String[] schemas)
Method Detail

isValid

public boolean isValid()
Specified by:
isValid in class AbstractValidator

validate

public boolean validate(String wsdlsource,
                        String[] schemas)
                 throws ToolException
Throws:
ToolException

validate

public boolean validate(InputSource wsdlsource,
                        String[] schemas)
                 throws ToolException
Throws:
ToolException

Apache CXF API

Apache CXF