You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by je...@locus.apache.org on 2000/10/06 09:39:44 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/impl/validation XMLElementDecl.java
jeffreyr 00/10/06 00:39:44
Modified: java/src/org/apache/xerces/impl/validation Tag: xerces_j_2
XMLElementDecl.java
Log:
XMLElementDecl implementation
Revision Changes Path
No revision
No revision
1.1.2.3 +18 -7 xml-xerces/java/src/org/apache/xerces/impl/validation/Attic/XMLElementDecl.java
Index: XMLElementDecl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/impl/validation/Attic/XMLElementDecl.java,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- XMLElementDecl.java 2000/10/02 00:40:07 1.1.2.2
+++ XMLElementDecl.java 2000/10/06 07:39:43 1.1.2.3
@@ -61,28 +61,28 @@
/**
* @author Stubs generated by DesignDoc on Mon Sep 11 11:54:05 PDT 2000
- * @version $Id: XMLElementDecl.java,v 1.1.2.2 2000/10/02 00:40:07 lehors Exp $
+ * @version $Id: XMLElementDecl.java,v 1.1.2.3 2000/10/06 07:39:43 jeffreyr Exp $
*/
public class XMLElementDecl {
//
- // Constants
+ // Constants
//
/** TYPE_ANY */
- public static final short TYPE_ANY = -1;
+ public static final short TYPE_ANY = 0;
/** TYPE_EMPTY */
- public static final short TYPE_EMPTY = -1;
+ public static final short TYPE_EMPTY = 1;
/** TYPE_MIXED */
- public static final short TYPE_MIXED = -1;
+ public static final short TYPE_MIXED = 2;
/** TYPE_CHILDREN */
- public static final short TYPE_CHILDREN = -1;
+ public static final short TYPE_CHILDREN = 3;
/** TYPE_SIMPLE */
- public static final short TYPE_SIMPLE = -1;
+ public static final short TYPE_SIMPLE = 4;
//
// Data
@@ -117,12 +117,23 @@
* @param simpleType
*/
public void setValues(QName name, int scope, short type, ContentModelValidator contentModelValidator, XMLSimpleType simpleType) {
+ this.name = name;
+ this.scope = scope;
+ this.type = type;
+ this.contentModelValidator = contentModelValidator;
+ this.simpleType = simpleType;
} // setValues
/**
* clear
*/
public void clear() {
+ this.name.clear();
+ this.type = -1;
+ this.scope = -1;
+ this.type = -1;
+ this.contentModelValidator = null;
+ this.simpleType = null;
} // clear
} // class XMLElementDecl