1 16 17 package org.apache.xerces.impl.dtd; 18 19 import org.apache.xerces.xni.QName; 20 import org.apache.xerces.impl.dtd.models.ContentModelValidator; 21 22 27 public class XMLElementDecl { 28 29 33 34 public static final short TYPE_ANY = 0; 35 36 37 public static final short TYPE_EMPTY = 1; 38 39 40 public static final short TYPE_MIXED = 2; 41 42 43 public static final short TYPE_CHILDREN = 3; 44 45 46 public static final short TYPE_SIMPLE = 4; 47 48 52 53 public final QName name = new QName(); 54 55 56 public int scope = -1; 57 58 59 public short type = -1; 60 61 62 public ContentModelValidator contentModelValidator; 63 64 65 public final XMLSimpleType simpleType = new XMLSimpleType(); 66 67 71 80 public void setValues(QName name, int scope, short type, ContentModelValidator contentModelValidator, XMLSimpleType simpleType) { 81 this.name.setValues(name); 82 this.scope = scope; 83 this.type = type; 84 this.contentModelValidator = contentModelValidator; 85 this.simpleType.setValues(simpleType); 86 } 88 91 public void clear() { 92 this.name.clear(); 93 this.type = -1; 94 this.scope = -1; 95 this.contentModelValidator = null; 96 this.simpleType.clear(); 97 } 99 } | Popular Tags |