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, ≈49🔥, 0💬
Popular Posts:
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
What Is in Xerces-J-bin.2.12.2.zip? Xerces-J-bin.2.12.2.zip file is the distribution package ZIP fil...
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module. JDK 17 JFR module compiled class files a...