Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Woodstox 6.4.0 - Source Code Files
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.
You can download them from the "src/main/java" folder.
You can also browse Woodstox Source Code files below:
✍: FYIcenter
⏎ com/ctc/wstx/osgi/ValidationSchemaFactoryProviderImpl.java
package com.ctc.wstx.osgi;
import java.util.Properties;
import org.codehaus.stax2.validation.XMLValidationSchema;
import org.codehaus.stax2.validation.XMLValidationSchemaFactory;
import org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider;
import com.ctc.wstx.api.ValidatorConfig;
import com.ctc.wstx.dtd.DTDSchemaFactory;
import com.ctc.wstx.msv.RelaxNGSchemaFactory;
import com.ctc.wstx.msv.W3CSchemaFactory;
public abstract class ValidationSchemaFactoryProviderImpl
implements Stax2ValidationSchemaFactoryProvider
{
final String mSchemaType;
protected ValidationSchemaFactoryProviderImpl(String st)
{
mSchemaType = st;
}
public static ValidationSchemaFactoryProviderImpl[] createAll()
{
return new ValidationSchemaFactoryProviderImpl[] {
new DTD(), new RelaxNG(), new W3CSchema()
};
}
@Override
public abstract XMLValidationSchemaFactory createValidationSchemaFactory();
@Override
public String getSchemaType() { return mSchemaType; }
public Properties getProperties()
{
Properties props = new Properties();
props.setProperty(OSGI_SVC_PROP_IMPL_NAME, ValidatorConfig.getImplName());
props.setProperty(OSGI_SVC_PROP_IMPL_VERSION, ValidatorConfig.getImplVersion());
props.setProperty(OSGI_SVC_PROP_SCHEMA_TYPE, mSchemaType);
return props;
}
/*
////////////////////////////////////////////////////////
// Actual provider instances, one per type supported
////////////////////////////////////////////////////////
*/
final static class DTD
extends ValidationSchemaFactoryProviderImpl
{
DTD() { super(XMLValidationSchema.SCHEMA_ID_DTD); }
@Override
public XMLValidationSchemaFactory createValidationSchemaFactory() {
return new DTDSchemaFactory();
}
}
final static class RelaxNG
extends ValidationSchemaFactoryProviderImpl
{
RelaxNG() { super(XMLValidationSchema.SCHEMA_ID_RELAXNG); }
@Override
public XMLValidationSchemaFactory createValidationSchemaFactory() {
return new RelaxNGSchemaFactory();
}
}
final static class W3CSchema
extends ValidationSchemaFactoryProviderImpl
{
W3CSchema() { super(XMLValidationSchema.SCHEMA_ID_W3C_SCHEMA); }
@Override
public XMLValidationSchemaFactory createValidationSchemaFactory() {
return new W3CSchemaFactory();
}
}
}
⏎ com/ctc/wstx/osgi/ValidationSchemaFactoryProviderImpl.java
Or download all of them as a single archive file:
File name: woodstox-core-6.4.0-fyi.zip File size: 552992 bytes Release date: 2022-10-25 Download
⇒ woodstox-core-6.4.0.jar - Woodstox Core 6.4.0
⇐ What Is Woodstox XML Processing
2023-01-29, ≈60🔥, 0💬
Popular Posts:
The Web Services Description Language for Java Toolkit (WSDL4J), Release 1.6.2, allows the creation,...
xml-commons Resolver Source Code Files are provided in the source package file, xml-commons-resolver...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...