1 57 58 package com.sun.org.apache.xerces.internal.impl.dtd; 59 60 import com.sun.org.apache.xerces.internal.xni.QName; 61 import com.sun.org.apache.xerces.internal.impl.dtd.models.ContentModelValidator; 62 65 public class XMLElementDecl { 66 67 71 72 public static final short TYPE_ANY = 0; 73 74 75 public static final short TYPE_EMPTY = 1; 76 77 78 public static final short TYPE_MIXED = 2; 79 80 81 public static final short TYPE_CHILDREN = 3; 82 83 84 public static final short TYPE_SIMPLE = 4; 85 86 90 91 public final QName name = new QName(); 92 93 94 public int scope = -1; 95 96 97 public short type = -1; 98 99 100 public ContentModelValidator contentModelValidator; 101 102 103 public final XMLSimpleType simpleType = new XMLSimpleType(); 104 105 109 118 public void setValues(QName name, int scope, short type, ContentModelValidator contentModelValidator, XMLSimpleType simpleType) { 119 this.name.setValues(name); 120 this.scope = scope; 121 this.type = type; 122 this.contentModelValidator = contentModelValidator; 123 this.simpleType.setValues(simpleType); 124 } 126 129 public void clear() { 130 this.name.clear(); 131 this.type = -1; 132 this.scope = -1; 133 this.contentModelValidator = null; 134 this.simpleType.clear(); 135 } 137 } | Popular Tags |