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/DTDEntityAttr.java
package com.ctc.wstx.dtd; import javax.xml.stream.XMLStreamException; import com.ctc.wstx.ent.EntityDecl; import com.ctc.wstx.io.WstxInputData; import com.ctc.wstx.sr.InputProblemReporter; import com.ctc.wstx.util.PrefixedName; /** * Specific attribute class for attributes that contain (unique) * identifiers. */ public final class DTDEntityAttr extends DTDAttribute { /* /////////////////////////////////////////////////// // Life-cycle /////////////////////////////////////////////////// */ /** * Main constructor. Note that id attributes can never have * default values. */ public DTDEntityAttr(PrefixedName name, DefaultAttrValue defValue, int specIndex, boolean nsAware, boolean xml11) { super(name, defValue, specIndex, nsAware, xml11); } @Override public DTDAttribute cloneWith(int specIndex) { return new DTDEntityAttr(mName, mDefValue, specIndex, mCfgNsAware, mCfgXml11); } /* /////////////////////////////////////////////////// // Public API /////////////////////////////////////////////////// */ @Override public int getValueType() { return TYPE_ENTITY; } /* /////////////////////////////////////////////////// // Public API, validation /////////////////////////////////////////////////// */ /** * Method called by the {@link DTDValidatorBase} * to let the attribute do necessary normalization and/or validation * for the value. */ @Override public String validate(DTDValidatorBase v, char[] cbuf, int start, int end, boolean normalize) throws XMLStreamException { while (start < end && WstxInputData.isSpaceChar(cbuf[start])) { ++start; } // Empty value? if (start >= end) { return reportValidationProblem(v, "Empty ENTITY value"); } --end; // so that it now points to the last char while (end > start && WstxInputData.isSpaceChar(cbuf[end])) { --end; } // Ok, need to check char validity, and also calc hash code: char c = cbuf[start]; if (!WstxInputData.isNameStartChar(c, mCfgNsAware, mCfgXml11) && c != ':') { return reportInvalidChar(v, c, "not valid as the first ID character"); } for (int i = start+1; i <= end; ++i) { c = cbuf[i]; if (!WstxInputData.isNameChar(c, mCfgNsAware, mCfgXml11)) { return reportInvalidChar(v, c, "not valid as an ID character"); } } EntityDecl ent = findEntityDecl(v, cbuf, start, (end - start + 1)); // only returns if it succeeded... return normalize ? ent.getName() : null; } /** * Method called by the validator object * 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 { String normStr = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(normStr); } // Ok, but was it declared? /* 03-Dec-2004, TSa: This is rather ugly -- need to know we * actually really get a DTD reader, and DTD reader needs * to expose a special method... but it gets things done. */ EntityDecl ent = ((MinimalDTDReader) rep).findEntity(normStr); checkEntity(rep, normStr, ent); } }
⏎ com/ctc/wstx/dtd/DTDEntityAttr.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, 9148👍, 0💬
Popular Posts:
What Is js.jar in Rhino JavaScript 1.7R5? js.jar in Rhino JavaScript 1.7R5 is the JAR file for Rhino...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...