first commit
This commit is contained in:
15
hrmsEjb/org/apache/xerces/xni/Augmentations.java
Normal file
15
hrmsEjb/org/apache/xerces/xni/Augmentations.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface Augmentations {
|
||||
void removeAllItems();
|
||||
|
||||
Enumeration keys();
|
||||
|
||||
Object getItem(String paramString);
|
||||
|
||||
Object removeItem(String paramString);
|
||||
|
||||
Object putItem(String paramString, Object paramObject);
|
||||
}
|
27
hrmsEjb/org/apache/xerces/xni/NamespaceContext.java
Normal file
27
hrmsEjb/org/apache/xerces/xni/NamespaceContext.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
import java.util.Enumeration;
|
||||
|
||||
public interface NamespaceContext {
|
||||
public static final String XML_URI = "http://www.w3.org/XML/1998/namespace".intern();
|
||||
|
||||
public static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/".intern();
|
||||
|
||||
int getDeclaredPrefixCount();
|
||||
|
||||
void popContext();
|
||||
|
||||
void pushContext();
|
||||
|
||||
void reset();
|
||||
|
||||
String getDeclaredPrefixAt(int paramInt);
|
||||
|
||||
Enumeration getAllPrefixes();
|
||||
|
||||
String getPrefix(String paramString);
|
||||
|
||||
String getURI(String paramString);
|
||||
|
||||
boolean declarePrefix(String paramString1, String paramString2);
|
||||
}
|
92
hrmsEjb/org/apache/xerces/xni/QName.java
Normal file
92
hrmsEjb/org/apache/xerces/xni/QName.java
Normal file
@@ -0,0 +1,92 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public class QName implements Cloneable {
|
||||
public String prefix;
|
||||
|
||||
public String localpart;
|
||||
|
||||
public String rawname;
|
||||
|
||||
public String uri;
|
||||
|
||||
public QName() {
|
||||
clear();
|
||||
}
|
||||
|
||||
public QName(String prefix, String localpart, String rawname, String uri) {
|
||||
setValues(prefix, localpart, rawname, uri);
|
||||
}
|
||||
|
||||
public QName(QName qname) {
|
||||
setValues(qname);
|
||||
}
|
||||
|
||||
public void setValues(QName qname) {
|
||||
this.prefix = qname.prefix;
|
||||
this.localpart = qname.localpart;
|
||||
this.rawname = qname.rawname;
|
||||
this.uri = qname.uri;
|
||||
}
|
||||
|
||||
public void setValues(String prefix, String localpart, String rawname, String uri) {
|
||||
this.prefix = prefix;
|
||||
this.localpart = localpart;
|
||||
this.rawname = rawname;
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
this.prefix = null;
|
||||
this.localpart = null;
|
||||
this.rawname = null;
|
||||
this.uri = null;
|
||||
}
|
||||
|
||||
public Object clone() {
|
||||
return new QName(this);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
if (this.uri != null)
|
||||
return this.uri.hashCode() + this.localpart.hashCode();
|
||||
return this.rawname.hashCode();
|
||||
}
|
||||
|
||||
public boolean equals(Object object) {
|
||||
if (object instanceof QName) {
|
||||
QName qname = (QName)object;
|
||||
if (qname.uri != null)
|
||||
return (this.uri == qname.uri && this.localpart == qname.localpart);
|
||||
if (this.uri == null)
|
||||
return (this.rawname == qname.rawname);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer str = new StringBuffer();
|
||||
boolean comma = false;
|
||||
if (this.prefix != null) {
|
||||
str.append("prefix=\"" + this.prefix + '"');
|
||||
comma = true;
|
||||
}
|
||||
if (this.localpart != null) {
|
||||
if (comma)
|
||||
str.append(',');
|
||||
str.append("localpart=\"" + this.localpart + '"');
|
||||
comma = true;
|
||||
}
|
||||
if (this.rawname != null) {
|
||||
if (comma)
|
||||
str.append(',');
|
||||
str.append("rawname=\"" + this.rawname + '"');
|
||||
comma = true;
|
||||
}
|
||||
if (this.uri != null) {
|
||||
if (comma)
|
||||
str.append(',');
|
||||
str.append("uri=\"" + this.uri + '"');
|
||||
}
|
||||
return str.toString();
|
||||
}
|
||||
}
|
59
hrmsEjb/org/apache/xerces/xni/XMLAttributes.java
Normal file
59
hrmsEjb/org/apache/xerces/xni/XMLAttributes.java
Normal file
@@ -0,0 +1,59 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public interface XMLAttributes {
|
||||
int getLength();
|
||||
|
||||
void removeAllAttributes();
|
||||
|
||||
void removeAttributeAt(int paramInt);
|
||||
|
||||
boolean isSpecified(int paramInt);
|
||||
|
||||
void setSpecified(int paramInt, boolean paramBoolean);
|
||||
|
||||
String getLocalName(int paramInt);
|
||||
|
||||
String getNonNormalizedValue(int paramInt);
|
||||
|
||||
String getPrefix(int paramInt);
|
||||
|
||||
String getQName(int paramInt);
|
||||
|
||||
String getType(int paramInt);
|
||||
|
||||
String getURI(int paramInt);
|
||||
|
||||
String getValue(int paramInt);
|
||||
|
||||
void setNonNormalizedValue(int paramInt, String paramString);
|
||||
|
||||
void setType(int paramInt, String paramString);
|
||||
|
||||
void setValue(int paramInt, String paramString);
|
||||
|
||||
int getIndex(String paramString);
|
||||
|
||||
Augmentations getAugmentations(int paramInt);
|
||||
|
||||
void setAugmentations(int paramInt, Augmentations paramAugmentations);
|
||||
|
||||
void getName(int paramInt, QName paramQName);
|
||||
|
||||
void setName(int paramInt, QName paramQName);
|
||||
|
||||
String getType(String paramString);
|
||||
|
||||
String getValue(String paramString);
|
||||
|
||||
int getIndex(String paramString1, String paramString2);
|
||||
|
||||
Augmentations getAugmentations(String paramString);
|
||||
|
||||
String getType(String paramString1, String paramString2);
|
||||
|
||||
String getValue(String paramString1, String paramString2);
|
||||
|
||||
int addAttribute(QName paramQName, String paramString1, String paramString2);
|
||||
|
||||
Augmentations getAugmentations(String paramString1, String paramString2);
|
||||
}
|
39
hrmsEjb/org/apache/xerces/xni/XMLDTDContentModelHandler.java
Normal file
39
hrmsEjb/org/apache/xerces/xni/XMLDTDContentModelHandler.java
Normal file
@@ -0,0 +1,39 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
import org.apache.xerces.xni.parser.XMLDTDContentModelSource;
|
||||
|
||||
public interface XMLDTDContentModelHandler {
|
||||
public static final short SEPARATOR_CHOICE = 0;
|
||||
|
||||
public static final short SEPARATOR_SEQUENCE = 1;
|
||||
|
||||
public static final short OCCURS_ZERO_OR_ONE = 2;
|
||||
|
||||
public static final short OCCURS_ZERO_OR_MORE = 3;
|
||||
|
||||
public static final short OCCURS_ONE_OR_MORE = 4;
|
||||
|
||||
void any(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void empty(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endContentModel(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endGroup(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void pcdata(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startGroup(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void occurrence(short paramShort, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void separator(short paramShort, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
XMLDTDContentModelSource getDTDContentModelSource();
|
||||
|
||||
void setDTDContentModelSource(XMLDTDContentModelSource paramXMLDTDContentModelSource);
|
||||
|
||||
void element(String paramString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startContentModel(String paramString, Augmentations paramAugmentations) throws XNIException;
|
||||
}
|
53
hrmsEjb/org/apache/xerces/xni/XMLDTDHandler.java
Normal file
53
hrmsEjb/org/apache/xerces/xni/XMLDTDHandler.java
Normal file
@@ -0,0 +1,53 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
import org.apache.xerces.xni.parser.XMLDTDSource;
|
||||
|
||||
public interface XMLDTDHandler {
|
||||
public static final short CONDITIONAL_INCLUDE = 0;
|
||||
|
||||
public static final short CONDITIONAL_IGNORE = 1;
|
||||
|
||||
void endAttlist(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endConditional(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endDTD(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endExternalSubset(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startConditional(short paramShort, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
XMLDTDSource getDTDSource();
|
||||
|
||||
void setDTDSource(XMLDTDSource paramXMLDTDSource);
|
||||
|
||||
void endParameterEntity(String paramString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startAttlist(String paramString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startDTD(XMLLocator paramXMLLocator, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startExternalSubset(XMLResourceIdentifier paramXMLResourceIdentifier, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void comment(XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void ignoredCharacters(XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void elementDecl(String paramString1, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void textDecl(String paramString1, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void externalEntityDecl(String paramString, XMLResourceIdentifier paramXMLResourceIdentifier, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void notationDecl(String paramString, XMLResourceIdentifier paramXMLResourceIdentifier, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void processingInstruction(String paramString, XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startParameterEntity(String paramString1, XMLResourceIdentifier paramXMLResourceIdentifier, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void unparsedEntityDecl(String paramString1, XMLResourceIdentifier paramXMLResourceIdentifier, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void internalEntityDecl(String paramString, XMLString paramXMLString1, XMLString paramXMLString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void attributeDecl(String paramString1, String paramString2, String paramString3, String[] paramArrayOfString, String paramString4, XMLString paramXMLString1, XMLString paramXMLString2, Augmentations paramAugmentations) throws XNIException;
|
||||
}
|
41
hrmsEjb/org/apache/xerces/xni/XMLDocumentHandler.java
Normal file
41
hrmsEjb/org/apache/xerces/xni/XMLDocumentHandler.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
import org.apache.xerces.xni.parser.XMLDocumentSource;
|
||||
|
||||
public interface XMLDocumentHandler {
|
||||
void endCDATA(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endDocument(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startCDATA(Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
XMLDocumentSource getDocumentSource();
|
||||
|
||||
void setDocumentSource(XMLDocumentSource paramXMLDocumentSource);
|
||||
|
||||
void endGeneralEntity(String paramString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void endElement(QName paramQName, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void characters(XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void comment(XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void ignorableWhitespace(XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void textDecl(String paramString1, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void emptyElement(QName paramQName, XMLAttributes paramXMLAttributes, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startElement(QName paramQName, XMLAttributes paramXMLAttributes, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void processingInstruction(String paramString, XMLString paramXMLString, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void doctypeDecl(String paramString1, String paramString2, String paramString3, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void xmlDecl(String paramString1, String paramString2, String paramString3, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startGeneralEntity(String paramString1, XMLResourceIdentifier paramXMLResourceIdentifier, String paramString2, Augmentations paramAugmentations) throws XNIException;
|
||||
|
||||
void startDocument(XMLLocator paramXMLLocator, String paramString, NamespaceContext paramNamespaceContext, Augmentations paramAugmentations) throws XNIException;
|
||||
}
|
15
hrmsEjb/org/apache/xerces/xni/XMLLocator.java
Normal file
15
hrmsEjb/org/apache/xerces/xni/XMLLocator.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public interface XMLLocator {
|
||||
int getColumnNumber();
|
||||
|
||||
int getLineNumber();
|
||||
|
||||
String getBaseSystemId();
|
||||
|
||||
String getExpandedSystemId();
|
||||
|
||||
String getLiteralSystemId();
|
||||
|
||||
String getPublicId();
|
||||
}
|
19
hrmsEjb/org/apache/xerces/xni/XMLResourceIdentifier.java
Normal file
19
hrmsEjb/org/apache/xerces/xni/XMLResourceIdentifier.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public interface XMLResourceIdentifier {
|
||||
String getBaseSystemId();
|
||||
|
||||
String getExpandedSystemId();
|
||||
|
||||
String getLiteralSystemId();
|
||||
|
||||
String getPublicId();
|
||||
|
||||
void setBaseSystemId(String paramString);
|
||||
|
||||
void setExpandedSystemId(String paramString);
|
||||
|
||||
void setLiteralSystemId(String paramString);
|
||||
|
||||
void setPublicId(String paramString);
|
||||
}
|
63
hrmsEjb/org/apache/xerces/xni/XMLString.java
Normal file
63
hrmsEjb/org/apache/xerces/xni/XMLString.java
Normal file
@@ -0,0 +1,63 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public class XMLString {
|
||||
public char[] ch;
|
||||
|
||||
public int offset;
|
||||
|
||||
public int length;
|
||||
|
||||
public XMLString() {}
|
||||
|
||||
public XMLString(char[] ch, int offset, int length) {
|
||||
setValues(ch, offset, length);
|
||||
}
|
||||
|
||||
public XMLString(XMLString string) {
|
||||
setValues(string);
|
||||
}
|
||||
|
||||
public void setValues(char[] ch, int offset, int length) {
|
||||
this.ch = ch;
|
||||
this.offset = offset;
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public void setValues(XMLString s) {
|
||||
setValues(s.ch, s.offset, s.length);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
this.ch = null;
|
||||
this.offset = 0;
|
||||
this.length = -1;
|
||||
}
|
||||
|
||||
public boolean equals(char[] ch, int offset, int length) {
|
||||
if (ch == null)
|
||||
return false;
|
||||
if (this.length != length)
|
||||
return false;
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (this.ch[this.offset + i] != ch[offset + i])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean equals(String s) {
|
||||
if (s == null)
|
||||
return false;
|
||||
if (this.length != s.length())
|
||||
return false;
|
||||
for (int i = 0; i < this.length; i++) {
|
||||
if (this.ch[this.offset + i] != s.charAt(i))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return (this.length > 0) ? new String(this.ch, this.offset, this.length) : "";
|
||||
}
|
||||
}
|
23
hrmsEjb/org/apache/xerces/xni/XNIException.java
Normal file
23
hrmsEjb/org/apache/xerces/xni/XNIException.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package org.apache.xerces.xni;
|
||||
|
||||
public class XNIException extends RuntimeException {
|
||||
private Exception fException;
|
||||
|
||||
public XNIException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public XNIException(Exception exception) {
|
||||
super(exception.getMessage());
|
||||
this.fException = exception;
|
||||
}
|
||||
|
||||
public XNIException(String message, Exception exception) {
|
||||
super(message);
|
||||
this.fException = exception;
|
||||
}
|
||||
|
||||
public Exception getException() {
|
||||
return this.fException;
|
||||
}
|
||||
}
|
5
hrmsEjb/org/apache/xerces/xni/grammars/Grammar.java
Normal file
5
hrmsEjb/org/apache/xerces/xni/grammars/Grammar.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package org.apache.xerces.xni.grammars;
|
||||
|
||||
public interface Grammar {
|
||||
XMLGrammarDescription getGrammarDescription();
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
package org.apache.xerces.xni.grammars;
|
||||
|
||||
import org.apache.xerces.xni.XMLResourceIdentifier;
|
||||
|
||||
public interface XMLGrammarDescription extends XMLResourceIdentifier {
|
||||
public static final String XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
|
||||
|
||||
public static final String XML_DTD = "http://www.w3.org/TR/REC-xml";
|
||||
|
||||
String getGrammarType();
|
||||
}
|
15
hrmsEjb/org/apache/xerces/xni/grammars/XMLGrammarPool.java
Normal file
15
hrmsEjb/org/apache/xerces/xni/grammars/XMLGrammarPool.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.apache.xerces.xni.grammars;
|
||||
|
||||
public interface XMLGrammarPool {
|
||||
void clear();
|
||||
|
||||
void lockPool();
|
||||
|
||||
void unlockPool();
|
||||
|
||||
Grammar[] retrieveInitialGrammarSet(String paramString);
|
||||
|
||||
void cacheGrammars(String paramString, Grammar[] paramArrayOfGrammar);
|
||||
|
||||
Grammar retrieveGrammar(XMLGrammarDescription paramXMLGrammarDescription);
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
public interface XMLComponentManager {
|
||||
boolean getFeature(String paramString) throws XMLConfigurationException;
|
||||
|
||||
Object getProperty(String paramString) throws XMLConfigurationException;
|
||||
}
|
@@ -0,0 +1,33 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XNIException;
|
||||
|
||||
public class XMLConfigurationException extends XNIException {
|
||||
public static final short NOT_RECOGNIZED = 0;
|
||||
|
||||
public static final short NOT_SUPPORTED = 1;
|
||||
|
||||
protected short fType;
|
||||
|
||||
protected String fIdentifier;
|
||||
|
||||
public XMLConfigurationException(short type, String identifier) {
|
||||
super(identifier);
|
||||
this.fType = type;
|
||||
this.fIdentifier = identifier;
|
||||
}
|
||||
|
||||
public XMLConfigurationException(short type, String identifier, String message) {
|
||||
super(message);
|
||||
this.fType = type;
|
||||
this.fIdentifier = identifier;
|
||||
}
|
||||
|
||||
public short getType() {
|
||||
return this.fType;
|
||||
}
|
||||
|
||||
public String getIdentifier() {
|
||||
return this.fIdentifier;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XMLDTDContentModelHandler;
|
||||
|
||||
public interface XMLDTDContentModelSource {
|
||||
XMLDTDContentModelHandler getDTDContentModelHandler();
|
||||
|
||||
void setDTDContentModelHandler(XMLDTDContentModelHandler paramXMLDTDContentModelHandler);
|
||||
}
|
9
hrmsEjb/org/apache/xerces/xni/parser/XMLDTDSource.java
Normal file
9
hrmsEjb/org/apache/xerces/xni/parser/XMLDTDSource.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XMLDTDHandler;
|
||||
|
||||
public interface XMLDTDSource {
|
||||
XMLDTDHandler getDTDHandler();
|
||||
|
||||
void setDTDHandler(XMLDTDHandler paramXMLDTDHandler);
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XMLDocumentHandler;
|
||||
|
||||
public interface XMLDocumentSource {
|
||||
XMLDocumentHandler getDocumentHandler();
|
||||
|
||||
void setDocumentHandler(XMLDocumentHandler paramXMLDocumentHandler);
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.xerces.xni.XMLResourceIdentifier;
|
||||
import org.apache.xerces.xni.XNIException;
|
||||
|
||||
public interface XMLEntityResolver {
|
||||
XMLInputSource resolveEntity(XMLResourceIdentifier paramXMLResourceIdentifier) throws XNIException, IOException;
|
||||
}
|
11
hrmsEjb/org/apache/xerces/xni/parser/XMLErrorHandler.java
Normal file
11
hrmsEjb/org/apache/xerces/xni/parser/XMLErrorHandler.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XNIException;
|
||||
|
||||
public interface XMLErrorHandler {
|
||||
void error(String paramString1, String paramString2, XMLParseException paramXMLParseException) throws XNIException;
|
||||
|
||||
void fatalError(String paramString1, String paramString2, XMLParseException paramXMLParseException) throws XNIException;
|
||||
|
||||
void warning(String paramString1, String paramString2, XMLParseException paramXMLParseException) throws XNIException;
|
||||
}
|
95
hrmsEjb/org/apache/xerces/xni/parser/XMLInputSource.java
Normal file
95
hrmsEjb/org/apache/xerces/xni/parser/XMLInputSource.java
Normal file
@@ -0,0 +1,95 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import org.apache.xerces.xni.XMLResourceIdentifier;
|
||||
|
||||
public class XMLInputSource {
|
||||
protected String fPublicId;
|
||||
|
||||
protected String fSystemId;
|
||||
|
||||
protected String fBaseSystemId;
|
||||
|
||||
protected InputStream fByteStream;
|
||||
|
||||
protected Reader fCharStream;
|
||||
|
||||
protected String fEncoding;
|
||||
|
||||
public XMLInputSource(String publicId, String systemId, String baseSystemId) {
|
||||
this.fPublicId = publicId;
|
||||
this.fSystemId = systemId;
|
||||
this.fBaseSystemId = baseSystemId;
|
||||
}
|
||||
|
||||
public XMLInputSource(XMLResourceIdentifier resourceIdentifier) {
|
||||
this.fPublicId = resourceIdentifier.getPublicId();
|
||||
this.fSystemId = resourceIdentifier.getLiteralSystemId();
|
||||
this.fBaseSystemId = resourceIdentifier.getBaseSystemId();
|
||||
}
|
||||
|
||||
public XMLInputSource(String publicId, String systemId, String baseSystemId, InputStream byteStream, String encoding) {
|
||||
this.fPublicId = publicId;
|
||||
this.fSystemId = systemId;
|
||||
this.fBaseSystemId = baseSystemId;
|
||||
this.fByteStream = byteStream;
|
||||
this.fEncoding = encoding;
|
||||
}
|
||||
|
||||
public XMLInputSource(String publicId, String systemId, String baseSystemId, Reader charStream, String encoding) {
|
||||
this.fPublicId = publicId;
|
||||
this.fSystemId = systemId;
|
||||
this.fBaseSystemId = baseSystemId;
|
||||
this.fCharStream = charStream;
|
||||
this.fEncoding = encoding;
|
||||
}
|
||||
|
||||
public void setPublicId(String publicId) {
|
||||
this.fPublicId = publicId;
|
||||
}
|
||||
|
||||
public String getPublicId() {
|
||||
return this.fPublicId;
|
||||
}
|
||||
|
||||
public void setSystemId(String systemId) {
|
||||
this.fSystemId = systemId;
|
||||
}
|
||||
|
||||
public String getSystemId() {
|
||||
return this.fSystemId;
|
||||
}
|
||||
|
||||
public void setBaseSystemId(String baseSystemId) {
|
||||
this.fBaseSystemId = baseSystemId;
|
||||
}
|
||||
|
||||
public String getBaseSystemId() {
|
||||
return this.fBaseSystemId;
|
||||
}
|
||||
|
||||
public void setByteStream(InputStream byteStream) {
|
||||
this.fByteStream = byteStream;
|
||||
}
|
||||
|
||||
public InputStream getByteStream() {
|
||||
return this.fByteStream;
|
||||
}
|
||||
|
||||
public void setCharacterStream(Reader charStream) {
|
||||
this.fCharStream = charStream;
|
||||
}
|
||||
|
||||
public Reader getCharacterStream() {
|
||||
return this.fCharStream;
|
||||
}
|
||||
|
||||
public void setEncoding(String encoding) {
|
||||
this.fEncoding = encoding;
|
||||
}
|
||||
|
||||
public String getEncoding() {
|
||||
return this.fEncoding;
|
||||
}
|
||||
}
|
96
hrmsEjb/org/apache/xerces/xni/parser/XMLParseException.java
Normal file
96
hrmsEjb/org/apache/xerces/xni/parser/XMLParseException.java
Normal file
@@ -0,0 +1,96 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import org.apache.xerces.xni.XMLLocator;
|
||||
import org.apache.xerces.xni.XNIException;
|
||||
|
||||
public class XMLParseException extends XNIException {
|
||||
protected String fPublicId;
|
||||
|
||||
protected String fLiteralSystemId;
|
||||
|
||||
protected String fExpandedSystemId;
|
||||
|
||||
protected String fBaseSystemId;
|
||||
|
||||
protected int fLineNumber = -1;
|
||||
|
||||
protected int fColumnNumber = -1;
|
||||
|
||||
public XMLParseException(XMLLocator locator, String message) {
|
||||
super(message);
|
||||
if (locator != null) {
|
||||
this.fPublicId = locator.getPublicId();
|
||||
this.fLiteralSystemId = locator.getLiteralSystemId();
|
||||
this.fExpandedSystemId = locator.getExpandedSystemId();
|
||||
this.fBaseSystemId = locator.getBaseSystemId();
|
||||
this.fLineNumber = locator.getLineNumber();
|
||||
this.fColumnNumber = locator.getColumnNumber();
|
||||
}
|
||||
}
|
||||
|
||||
public XMLParseException(XMLLocator locator, String message, Exception exception) {
|
||||
super(message, exception);
|
||||
this.fPublicId = locator.getPublicId();
|
||||
this.fLiteralSystemId = locator.getLiteralSystemId();
|
||||
this.fExpandedSystemId = locator.getExpandedSystemId();
|
||||
this.fBaseSystemId = locator.getBaseSystemId();
|
||||
this.fLineNumber = locator.getLineNumber();
|
||||
this.fColumnNumber = locator.getColumnNumber();
|
||||
}
|
||||
|
||||
public String getPublicId() {
|
||||
return this.fPublicId;
|
||||
}
|
||||
|
||||
public String getExpandedSystemId() {
|
||||
return this.fExpandedSystemId;
|
||||
}
|
||||
|
||||
public String getLiteralSystemId() {
|
||||
return this.fLiteralSystemId;
|
||||
}
|
||||
|
||||
public String getBaseSystemId() {
|
||||
return this.fBaseSystemId;
|
||||
}
|
||||
|
||||
public int getLineNumber() {
|
||||
return this.fLineNumber;
|
||||
}
|
||||
|
||||
public int getColumnNumber() {
|
||||
return this.fColumnNumber;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer str = new StringBuffer();
|
||||
if (this.fPublicId != null)
|
||||
str.append(this.fPublicId);
|
||||
str.append(':');
|
||||
if (this.fPublicId != null)
|
||||
str.append(this.fPublicId);
|
||||
str.append(':');
|
||||
if (this.fLiteralSystemId != null)
|
||||
str.append(this.fLiteralSystemId);
|
||||
str.append(':');
|
||||
if (this.fExpandedSystemId != null)
|
||||
str.append(this.fExpandedSystemId);
|
||||
str.append(':');
|
||||
if (this.fBaseSystemId != null)
|
||||
str.append(this.fBaseSystemId);
|
||||
str.append(':');
|
||||
str.append(this.fLineNumber);
|
||||
str.append(':');
|
||||
str.append(this.fColumnNumber);
|
||||
str.append(':');
|
||||
String message = getMessage();
|
||||
if (message == null) {
|
||||
Exception exception = getException();
|
||||
if (exception != null)
|
||||
message = exception.getMessage();
|
||||
}
|
||||
if (message != null)
|
||||
str.append(message);
|
||||
return str.toString();
|
||||
}
|
||||
}
|
@@ -0,0 +1,48 @@
|
||||
package org.apache.xerces.xni.parser;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
import org.apache.xerces.xni.XMLDTDContentModelHandler;
|
||||
import org.apache.xerces.xni.XMLDTDHandler;
|
||||
import org.apache.xerces.xni.XMLDocumentHandler;
|
||||
import org.apache.xerces.xni.XNIException;
|
||||
|
||||
public interface XMLParserConfiguration extends XMLComponentManager {
|
||||
boolean getFeature(String paramString) throws XMLConfigurationException;
|
||||
|
||||
void setFeature(String paramString, boolean paramBoolean) throws XMLConfigurationException;
|
||||
|
||||
void addRecognizedFeatures(String[] paramArrayOfString);
|
||||
|
||||
void addRecognizedProperties(String[] paramArrayOfString);
|
||||
|
||||
Locale getLocale();
|
||||
|
||||
void setLocale(Locale paramLocale) throws XNIException;
|
||||
|
||||
XMLDTDContentModelHandler getDTDContentModelHandler();
|
||||
|
||||
void setDTDContentModelHandler(XMLDTDContentModelHandler paramXMLDTDContentModelHandler);
|
||||
|
||||
XMLDTDHandler getDTDHandler();
|
||||
|
||||
void setDTDHandler(XMLDTDHandler paramXMLDTDHandler);
|
||||
|
||||
XMLDocumentHandler getDocumentHandler();
|
||||
|
||||
void setDocumentHandler(XMLDocumentHandler paramXMLDocumentHandler);
|
||||
|
||||
XMLEntityResolver getEntityResolver();
|
||||
|
||||
void setEntityResolver(XMLEntityResolver paramXMLEntityResolver);
|
||||
|
||||
XMLErrorHandler getErrorHandler();
|
||||
|
||||
void setErrorHandler(XMLErrorHandler paramXMLErrorHandler);
|
||||
|
||||
void parse(XMLInputSource paramXMLInputSource) throws XNIException, IOException;
|
||||
|
||||
Object getProperty(String paramString) throws XMLConfigurationException;
|
||||
|
||||
void setProperty(String paramString, Object paramObject) throws XMLConfigurationException;
|
||||
}
|
7
hrmsEjb/org/apache/xerces/xni/psvi/AttributePSVI.java
Normal file
7
hrmsEjb/org/apache/xerces/xni/psvi/AttributePSVI.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package org.apache.xerces.xni.psvi;
|
||||
|
||||
import org.apache.xerces.impl.xs.psvi.XSAttributeDeclaration;
|
||||
|
||||
public interface AttributePSVI extends ItemPSVI {
|
||||
XSAttributeDeclaration getAttributeDeclaration();
|
||||
}
|
13
hrmsEjb/org/apache/xerces/xni/psvi/ElementPSVI.java
Normal file
13
hrmsEjb/org/apache/xerces/xni/psvi/ElementPSVI.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package org.apache.xerces.xni.psvi;
|
||||
|
||||
import org.apache.xerces.impl.xs.psvi.XSElementDeclaration;
|
||||
import org.apache.xerces.impl.xs.psvi.XSModel;
|
||||
import org.apache.xerces.impl.xs.psvi.XSNotationDeclaration;
|
||||
|
||||
public interface ElementPSVI extends ItemPSVI {
|
||||
XSElementDeclaration getElementDeclaration();
|
||||
|
||||
XSModel getSchemaInformation();
|
||||
|
||||
XSNotationDeclaration getNotation();
|
||||
}
|
37
hrmsEjb/org/apache/xerces/xni/psvi/ItemPSVI.java
Normal file
37
hrmsEjb/org/apache/xerces/xni/psvi/ItemPSVI.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package org.apache.xerces.xni.psvi;
|
||||
|
||||
import org.apache.xerces.impl.xs.psvi.StringList;
|
||||
import org.apache.xerces.impl.xs.psvi.XSSimpleTypeDefinition;
|
||||
import org.apache.xerces.impl.xs.psvi.XSTypeDefinition;
|
||||
|
||||
public interface ItemPSVI {
|
||||
public static final short VALIDITY_NOTKNOWN = 0;
|
||||
|
||||
public static final short VALIDITY_INVALID = 1;
|
||||
|
||||
public static final short VALIDITY_VALID = 2;
|
||||
|
||||
public static final short VALIDATION_NONE = 0;
|
||||
|
||||
public static final short VALIDATION_PARTIAL = 1;
|
||||
|
||||
public static final short VALIDATION_FULL = 2;
|
||||
|
||||
short getValidationAttempted();
|
||||
|
||||
short getValidity();
|
||||
|
||||
boolean getIsSchemaSpecified();
|
||||
|
||||
String getSchemaDefault();
|
||||
|
||||
String getSchemaNormalizedValue();
|
||||
|
||||
String getValidationContext();
|
||||
|
||||
StringList getErrorCodes();
|
||||
|
||||
XSSimpleTypeDefinition getMemberTypeDefinition();
|
||||
|
||||
XSTypeDefinition getTypeDefinition();
|
||||
}
|
Reference in New Issue
Block a user