Java Doc for SchemaValidate.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.optional.XMLValidateTask
   org.apache.tools.ant.taskdefs.optional.SchemaValidate

SchemaValidate
public class SchemaValidate extends XMLValidateTask (Code)
Validate XML Schema documents. This task validates XML schema documents. It requires an XML parser that handles the relevant SAx, Xerces or JAXP options. To resolve remote referencies, Ant may need its proxy set up, using the setproxy task. Hands off most of the work to its parent, XMLValidateTask
since:
   Ant1.7

Inner Class :public static class SchemaLocation

Field Summary
final public static  StringERROR_DUPLICATE_SCHEMA
    
final public static  StringERROR_NO_XSD_SUPPORT
    
final public static  StringERROR_PARSER_CREATION_FAILURE
    
final public static  StringERROR_SAX_1
    
final public static  StringERROR_TOO_MANY_DEFAULT_SCHEMAS
    
final public static  StringMESSAGE_ADDING_SCHEMA
    


Method Summary
public  voidaddConfiguredSchema(SchemaLocation location)
    
protected  voidaddSchemaLocations()
     build a string list of all schema locations, then set the relevant property.
protected  voidcreateAnonymousSchema()
    
protected  XMLReadercreateDefaultReader()
     Create a reader if the use of the class did not specify another one.
public  booleanenableJAXP12SchemaValidation()
     Set schema attributes in a JAXP 1.2 engine.
public  booleanenableXercesSchemaValidation()
     Turn on XSD support in Xerces.
protected  StringgetNoNamespaceSchemaURL()
    
public  voidinit()
     Called by the project to let the task initialize properly.
protected  voidinitValidator()
    
protected  voidonSuccessfulValidation(int fileProcessed)
     handler called on successful file validation.
public  voidsetDisableDTD(boolean disableDTD)
     flag to disable DTD support.
protected  voidsetFeatureIfSupported(String feature, boolean value)
    
public  voidsetFullChecking(boolean fullChecking)
     enable full schema checking.
public  voidsetNoNamespaceFile(File defaultSchemaFile)
    
public  voidsetNoNamespaceURL(String defaultSchemaURL)
    

Field Detail
ERROR_DUPLICATE_SCHEMA
final public static String ERROR_DUPLICATE_SCHEMA(Code)
Duplicate declaration of schema



ERROR_NO_XSD_SUPPORT
final public static String ERROR_NO_XSD_SUPPORT(Code)
schema features not supported



ERROR_PARSER_CREATION_FAILURE
final public static String ERROR_PARSER_CREATION_FAILURE(Code)
unable to create parser



ERROR_SAX_1
final public static String ERROR_SAX_1(Code)
SAX1 not supported



ERROR_TOO_MANY_DEFAULT_SCHEMAS
final public static String ERROR_TOO_MANY_DEFAULT_SCHEMAS(Code)
too many default schemas



MESSAGE_ADDING_SCHEMA
final public static String MESSAGE_ADDING_SCHEMA(Code)
adding schema





Method Detail
addConfiguredSchema
public void addConfiguredSchema(SchemaLocation location)(Code)
add the schema
Parameters:
  location - the schema location.
throws:
  BuildException - if there is no namespace, or if there alreadyis a declaration of this schema with a different value



addSchemaLocations
protected void addSchemaLocations()(Code)
build a string list of all schema locations, then set the relevant property.



createAnonymousSchema
protected void createAnonymousSchema()(Code)
create a schema location to hold the anonymous schema



createDefaultReader
protected XMLReader createDefaultReader()(Code)
Create a reader if the use of the class did not specify another one. The reason to not use JAXPUtils.getXMLReader was to create our own factory with our own options. a default XML parser



enableJAXP12SchemaValidation
public boolean enableJAXP12SchemaValidation()(Code)
Set schema attributes in a JAXP 1.2 engine.
See Also:    * JAXP 1.2 Approved CHANGES true on success, false on failure



enableXercesSchemaValidation
public boolean enableXercesSchemaValidation()(Code)
Turn on XSD support in Xerces. true on success, false on failure



getNoNamespaceSchemaURL
protected String getNoNamespaceSchemaURL()(Code)
get the URL of the no namespace schema the schema URL



init
public void init() throws BuildException(Code)
Called by the project to let the task initialize properly. The default implementation is a no-op.
throws:
  BuildException - if something goes wrong with the build



initValidator
protected void initValidator()(Code)
init the parser : load the parser class, and set features if necessary It is only after this that the reader is valid
throws:
  BuildException - if something went wrong



onSuccessfulValidation
protected void onSuccessfulValidation(int fileProcessed)(Code)
handler called on successful file validation.
Parameters:
  fileProcessed - number of files processed.



setDisableDTD
public void setDisableDTD(boolean disableDTD)(Code)
flag to disable DTD support.
Parameters:
  disableDTD - a boolean value.



setFeatureIfSupported
protected void setFeatureIfSupported(String feature, boolean value)(Code)
set a feature if it is supported, log at verbose level if not
Parameters:
  feature - the feature.
Parameters:
  value - a boolean value.



setFullChecking
public void setFullChecking(boolean fullChecking)(Code)
enable full schema checking. Slower but better.
Parameters:
  fullChecking - a boolean value.



setNoNamespaceFile
public void setNoNamespaceFile(File defaultSchemaFile)(Code)
identify a file containing the default schema
Parameters:
  defaultSchemaFile - the location of the default schema.



setNoNamespaceURL
public void setNoNamespaceURL(String defaultSchemaURL)(Code)
identify the URL of the default schema
Parameters:
  defaultSchemaURL - the URL of the default schema.



Fields inherited from org.apache.tools.ant.taskdefs.optional.XMLValidateTask
final protected static String INIT_FAILED_MSG(Code)(Java Doc)
final public static String MESSAGE_FILES_VALIDATED(Code)(Java Doc)
protected Path classpath(Code)(Java Doc)
protected ValidatorErrorHandler errorHandler(Code)(Java Doc)
protected boolean failOnError(Code)(Java Doc)
protected File file(Code)(Java Doc)
protected Vector filesets(Code)(Java Doc)
protected boolean lenient(Code)(Java Doc)
protected String readerClassName(Code)(Java Doc)
protected boolean warn(Code)(Java Doc)
protected XMLReader xmlReader(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.optional.XMLValidateTask
public void addConfiguredXMLCatalog(XMLCatalog catalog)(Code)(Java Doc)
public void addFileset(FileSet set)(Code)(Java Doc)
public Attribute createAttribute()(Code)(Java Doc)
public Path createClasspath()(Code)(Java Doc)
public DTDLocation createDTD()(Code)(Java Doc)
protected XMLReader createDefaultReader()(Code)(Java Doc)
public Property createProperty()(Code)(Java Doc)
protected XMLReader createXmlReader()(Code)(Java Doc)
protected boolean doValidate(File afile)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
protected EntityResolver getEntityResolver()(Code)(Java Doc)
protected XMLReader getXmlReader()(Code)(Java Doc)
public void init() throws BuildException(Code)(Java Doc)
protected void initValidator()(Code)(Java Doc)
protected boolean isSax1Parser()(Code)(Java Doc)
protected void onSuccessfulValidation(int fileProcessed)(Code)(Java Doc)
public void setClassName(String className)(Code)(Java Doc)
public void setClasspath(Path classpath)(Code)(Java Doc)
public void setClasspathRef(Reference r)(Code)(Java Doc)
public void setFailOnError(boolean fail)(Code)(Java Doc)
protected void setFeature(String feature, boolean value) throws BuildException(Code)(Java Doc)
public void setFile(File file)(Code)(Java Doc)
public void setLenient(boolean bool)(Code)(Java Doc)
protected void setProperty(String name, String value) throws BuildException(Code)(Java Doc)
public void setWarn(boolean bool)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.