Fields Summary |
---|
public static final short | TYPE_CDATATYPE_CDATA |
public static final short | TYPE_ENTITYTYPE_ENTITY |
public static final short | TYPE_ENUMERATIONTYPE_ENUMERATION |
public static final short | TYPE_IDTYPE_ID |
public static final short | TYPE_IDREFTYPE_IDREF |
public static final short | TYPE_NMTOKENTYPE_NMTOKEN |
public static final short | TYPE_NOTATIONTYPE_NOTATION |
public static final short | TYPE_NAMEDTYPE_NAMED |
public static final short | DEFAULT_TYPE_DEFAULTDEFAULT_TYPE_DEFAULT |
public static final short | DEFAULT_TYPE_FIXEDDEFAULT_TYPE_FIXED |
public static final short | DEFAULT_TYPE_IMPLIEDDEFAULT_TYPE_IMPLIED |
public static final short | DEFAULT_TYPE_REQUIREDDEFAULT_TYPE_REQUIRED |
public short | typetype |
public String | namename |
public String[] | enumerationenumeration |
public boolean | listlist |
public short | defaultTypedefaultType |
public String | defaultValuedefaultValue |
public String | nonNormalizedDefaultValuenon-normalized defaultValue |
public DatatypeValidator | datatypeValidatordatatypeValidator |
Methods Summary |
---|
public void | clear()clear
this.type = -1;
this.name = null;
this.enumeration = null;
this.list = false;
this.defaultType = -1;
this.defaultValue = null;
this.nonNormalizedDefaultValue = null;
this.datatypeValidator = null;
|
public void | setValues(short type, java.lang.String name, java.lang.String[] enumeration, boolean list, short defaultType, java.lang.String defaultValue, java.lang.String nonNormalizedDefaultValue, com.sun.org.apache.xerces.internal.impl.dv.DatatypeValidator datatypeValidator)setValues
//
// Methods
//
this.type = type;
this.name = name;
// REVISIT: Should this be a copy? -Ac
if (enumeration != null && enumeration.length > 0) {
this.enumeration = new String[enumeration.length];
System.arraycopy(enumeration, 0, this.enumeration, 0, this.enumeration.length);
}
else {
this.enumeration = null;
}
this.list = list;
this.defaultType = defaultType;
this.defaultValue = defaultValue;
this.nonNormalizedDefaultValue = nonNormalizedDefaultValue;
this.datatypeValidator = datatypeValidator;
|
public void | setValues(com.sun.org.apache.xerces.internal.impl.dtd.XMLSimpleType simpleType)Set values.
type = simpleType.type;
name = simpleType.name;
// REVISIT: Should this be a copy? -Ac
if (simpleType.enumeration != null && simpleType.enumeration.length > 0) {
enumeration = new String[simpleType.enumeration.length];
System.arraycopy(simpleType.enumeration, 0, enumeration, 0, enumeration.length);
}
else {
enumeration = null;
}
list = simpleType.list;
defaultType = simpleType.defaultType;
defaultValue = simpleType.defaultValue;
nonNormalizedDefaultValue = simpleType.nonNormalizedDefaultValue;
datatypeValidator = simpleType.datatypeValidator;
|