FileDocCategorySizeDatePackage
XMLSimpleType.javaAPI DocJava SE 5 API6916Fri Aug 26 14:55:46 BST 2005com.sun.org.apache.xerces.internal.impl.dtd

XMLSimpleType

public class XMLSimpleType extends Object
version
$Id: XMLSimpleType.java,v 1.5 2002/02/15 16:00:29 sandygao Exp $

Fields Summary
public static final short
TYPE_CDATA
TYPE_CDATA
public static final short
TYPE_ENTITY
TYPE_ENTITY
public static final short
TYPE_ENUMERATION
TYPE_ENUMERATION
public static final short
TYPE_ID
TYPE_ID
public static final short
TYPE_IDREF
TYPE_IDREF
public static final short
TYPE_NMTOKEN
TYPE_NMTOKEN
public static final short
TYPE_NOTATION
TYPE_NOTATION
public static final short
TYPE_NAMED
TYPE_NAMED
public static final short
DEFAULT_TYPE_DEFAULT
DEFAULT_TYPE_DEFAULT
public static final short
DEFAULT_TYPE_FIXED
DEFAULT_TYPE_FIXED
public static final short
DEFAULT_TYPE_IMPLIED
DEFAULT_TYPE_IMPLIED
public static final short
DEFAULT_TYPE_REQUIRED
DEFAULT_TYPE_REQUIRED
public short
type
type
public String
name
name
public String[]
enumeration
enumeration
public boolean
list
list
public short
defaultType
defaultType
public String
defaultValue
defaultValue
public String
nonNormalizedDefaultValue
non-normalized defaultValue
public DatatypeValidator
datatypeValidator
datatypeValidator
Constructors Summary
Methods Summary
public voidclear()
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 voidsetValues(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

param
type
param
name
param
enumeration
param
list
param
defaultType
param
defaultValue
param
nonNormalizedDefaultValue
param
datatypeValidator


    //
    // 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 voidsetValues(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;