Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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/dtd/DTDNotationAttr.java
package com.ctc.wstx.dtd; import javax.xml.stream.XMLStreamException; import com.ctc.wstx.sr.InputProblemReporter; import com.ctc.wstx.util.PrefixedName; import com.ctc.wstx.util.WordResolver; /** * Specific attribute class for attributes that are of NOTATION type, * and also contain enumerated set of legal values. */ public final class DTDNotationAttr extends DTDAttribute { final WordResolver mEnumValues; /* /////////////////////////////////////////////////// // Life-cycle /////////////////////////////////////////////////// */ public DTDNotationAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11, WordResolver enumValues) { super(name, defValue, specIndex, nsAware, xml11); mEnumValues = enumValues; } @Override public DTDAttribute cloneWith(int specIndex) { return new DTDNotationAttr(mName, mDefValue, specIndex, mCfgNsAware, mCfgXml11, mEnumValues); } /* /////////////////////////////////////////////////// // Public API /////////////////////////////////////////////////// */ @Override public int getValueType() { return TYPE_NOTATION; } @Override public boolean typeIsNotation() { return true; } /* /////////////////////////////////////////////////// // Public API, validation /////////////////////////////////////////////////// */ /** * Method called by the validator * to let the attribute do necessary normalization and/or validation * for the value. *<p> * Note: identical to the implementation in {@link DTDEnumAttr} */ @Override public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException { String ok = validateEnumValue(cbuf, start, end, normalize, mEnumValues); if (ok == null) { String val = new String(cbuf, start, (end-start)); return reportValidationProblem(v, "Invalid notation value '"+val+"': has to be one of (" +mEnumValues+")"); } return ok; } /** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ @Override public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { // First, basic checks that it's a valid non-empty name: String def = validateDefaultName(rep, normalize); // And then that it's one of listed values: String shared = mEnumValues.find(def); if (shared == null) { reportValidationProblem(rep, "Invalid default value '"+def+"': has to be one of (" +mEnumValues+")"); } // Ok, cool it's ok... if (normalize) { mDefValue.setValue(shared); } } }
⏎ com/ctc/wstx/dtd/DTDNotationAttr.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, 9156👍, 0💬
Popular Posts:
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...