org.codehaus.mojo.xml.validation
Class ValidationSet

java.lang.Object
  extended by org.codehaus.mojo.xml.validation.ValidationSet

public class ValidationSet
extends java.lang.Object

An instance of this class is used to specify a set of files, which are validated against a common schema.


Constructor Summary
ValidationSet()
           
 
Method Summary
 java.io.File getDir()
          Returns a directory, which is scanned for files to validate.
 java.lang.String[] getExcludes()
          Returns patterns of files, which are being excluded from the validation set.
 java.lang.String[] getIncludes()
          Returns patterns of files, which are being included into the validation set.
 java.lang.String getPublicId()
          Returns the schemas public ID.
 java.lang.String getSchemaLanguage()
          Returns the schema language.
 java.lang.String getSystemId()
          Returns the schemas system ID.
 boolean isSkipDefaultExcludes()
          Returns, whether Maven's default excludes are being ignored.
 boolean isValidating()
          If the documents are being validated for wellformedness only: Returns, whether the parser should be validating.
 void setDir(java.io.File pDir)
          Sets a directory, which is scanned for files to validate.
 void setExcludes(java.lang.String[] pExcludes)
          Sets patterns of files, which are being excluded from the validation set.
 void setIncludes(java.lang.String[] pIncludes)
          Sets patterns of files, which are being included into the validation set.
 void setPublicId(java.lang.String pPublicId)
          Sets the schemas public ID.
 void setSchemaLanguage(java.lang.String pSchemaLanguage)
          Sets the schema language.
 void setSkipDefaultExcludes(boolean pSkipDefaultExcludes)
          Sets, whether Maven's default excludes are being ignored.
 void setSystemId(java.lang.String pSystemId)
          Sets the schemas system ID.
 void setValidating(boolean pValidating)
          If the documents are being validated for wellformedness only: Sets, whether the parser should be validating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationSet

public ValidationSet()
Method Detail

getDir

public java.io.File getDir()
Returns a directory, which is scanned for files to validate.


getExcludes

public java.lang.String[] getExcludes()
Returns patterns of files, which are being excluded from the validation set.


getIncludes

public java.lang.String[] getIncludes()
Returns patterns of files, which are being included into the validation set.


getPublicId

public java.lang.String getPublicId()
Returns the schemas public ID. May be null, if the schema is loaded through its system ID or if the documents are being validated for wellformedness only.


getSchemaLanguage

public java.lang.String getSchemaLanguage()
Returns the schema language. May be null, if the documents are being validated for wellformedness only, or if the default schema language (W3C XML Schema) is being used. See http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/SchemaFactory.html for possible values.


getSystemId

public java.lang.String getSystemId()
Returns the schemas system ID. May be null, if the schema is loaded through its public ID or if the documents are being validated for wellformedness only.


isSkipDefaultExcludes

public boolean isSkipDefaultExcludes()
Returns, whether Maven's default excludes are being ignored. Defaults to false (Default excludes are being used).


isValidating

public boolean isValidating()
If the documents are being validated for wellformedness only: Returns, whether the parser should be validating. (In other words: Whether documents must contain a document type or xml schema declaration.) The property is ignored otherwise. The default value is false.


setDir

public void setDir(java.io.File pDir)
Sets a directory, which is scanned for files to validate.


setExcludes

public void setExcludes(java.lang.String[] pExcludes)
Sets patterns of files, which are being excluded from the validation set.


setIncludes

public void setIncludes(java.lang.String[] pIncludes)
Sets patterns of files, which are being included into the validation set.


setPublicId

public void setPublicId(java.lang.String pPublicId)
Sets the schemas public ID. May be null, if the schema is loaded through its system ID or if the documents are being validated for wellformedness only.


setSchemaLanguage

public void setSchemaLanguage(java.lang.String pSchemaLanguage)
Sets the schema language. May be null, if the documents are being validated for wellformedness only, or if the default schema language (W3C XML Schema) is being used. See http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/SchemaFactory.html for possible values.


setSkipDefaultExcludes

public void setSkipDefaultExcludes(boolean pSkipDefaultExcludes)
Sets, whether Maven's default excludes are being ignored. Defaults to false (Default excludes are being used).


setSystemId

public void setSystemId(java.lang.String pSystemId)
Sets the schemas system ID. May be null, if the schema is loaded through its public ID or if the documents are being validated for wellformedness only.


setValidating

public void setValidating(boolean pValidating)
If the documents are being validated for wellformedness only: Sets, whether the parser should be validating. (In other words: Whether documents must contain a document type or xml schema declaration.) The property is ignored otherwise. The default value is false.



Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.