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/dtd/DFAValidator.java
/* Woodstox XML processor
*
* Copyright (c) 2004 Tatu Saloranta, tatu.saloranta@iki.fi
*
* Licensed under the License specified in the file LICENSE which is
* included with the source code.
* You may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.ctc.wstx.dtd;
import java.util.*;
import com.ctc.wstx.util.PrefixedName;
import com.ctc.wstx.util.StringUtil;
/**
* Validator class that is based on a DFA constructed from DTD content
* specification.
*/
public final class DFAValidator
extends StructValidator
{
/**
* For root validator instance, the start state of DFA; for other
* instances, current state.
*/
DFAState mState;
public DFAValidator(DFAState initialState) {
mState = initialState;
}
@Override
public StructValidator newInstance() {
return new DFAValidator(mState);
}
@Override
public String tryToValidate(PrefixedName elemName)
{
// Do we have a follow state with that key?
DFAState next = mState.findNext(elemName);
if (next == null) {
// Nope; let's show what we'd have expected instead...
TreeSet<PrefixedName> names = mState.getNextNames();
if (names.size() == 0) { // expected end tag?
return "Expected $END";
}
// Either end tag, or another tag?
if (mState.isAcceptingState()) {
return "Expected <"+StringUtil.concatEntries(names, ">, <", null)+"> or $END";
}
return "Expected <"+StringUtil.concatEntries(names,
">, <", "> or <")+">";
}
mState = next;
return null;
}
@Override
public String fullyValid()
{
if (mState.isAcceptingState()) {
return null;
}
TreeSet<PrefixedName> names = mState.getNextNames();
return "Expected <"+StringUtil.concatEntries(names,
">, <", "> or <")+">";
}
}
⏎ com/ctc/wstx/dtd/DFAValidator.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, ≈45🔥, 0💬
Popular Posts:
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
HttpComponents Client Source Code Files are provided in the source package file, httpcomponents-clie...
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool, which can be invoked by the "jdeps" co...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...