org.apache.xerces.impl.xs
Class XSElementDecl

java.lang.Object
  |
  +--org.apache.xerces.impl.xs.XSElementDecl

public class XSElementDecl
extends java.lang.Object

The XML representation for an element declaration schema component is an element information item

Version:
$Id: XSElementDecl.java,v 1.6 2002/01/29 01:15:14 lehors Exp $
Author:
Elena Litani, IBM, Sandy Gao, IBM

Field Summary
static short DEFAULT_VALUE
           
 short fBlock
           
 ValidatedInfo fDefault
           
 short fFinal
           
static short FIXED_VALUE
           
 java.lang.String fName
           
 XSElementDecl fSubGroup
           
 java.lang.String fTargetNamespace
           
 XSTypeDecl fType
           
static short NO_CONSTRAINT
           
 
Constructor Summary
XSElementDecl()
           
 
Method Summary
 void addIDConstaint(IdentityConstraint idc)
           
 boolean equals(java.lang.Object o)
          whether two decls are the same
 short getConstraintType()
           
 IdentityConstraint[] getIDConstraints()
           
 int hashCode()
          get the hash code
 boolean isAbstract()
           
 boolean isGlobal()
           
 boolean isNillable()
           
 void setConstraintType(short constraintType)
           
 void setIsAbstract()
           
 void setIsGlobal()
           
 void setIsNillable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_CONSTRAINT

public static final short NO_CONSTRAINT

DEFAULT_VALUE

public static final short DEFAULT_VALUE

FIXED_VALUE

public static final short FIXED_VALUE

fName

public java.lang.String fName

fTargetNamespace

public java.lang.String fTargetNamespace

fType

public XSTypeDecl fType

fBlock

public short fBlock

fFinal

public short fFinal

fDefault

public ValidatedInfo fDefault

fSubGroup

public XSElementDecl fSubGroup
Constructor Detail

XSElementDecl

public XSElementDecl()
Method Detail

getConstraintType

public short getConstraintType()

isNillable

public boolean isNillable()

isAbstract

public boolean isAbstract()

isGlobal

public boolean isGlobal()

setConstraintType

public void setConstraintType(short constraintType)

setIsNillable

public void setIsNillable()

setIsAbstract

public void setIsAbstract()

setIsGlobal

public void setIsGlobal()

addIDConstaint

public void addIDConstaint(IdentityConstraint idc)

getIDConstraints

public IdentityConstraint[] getIDConstraints()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
get the hash code
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
whether two decls are the same
Overrides:
equals in class java.lang.Object


Copyright © 1999-2002 Apache XML Project. All Rights Reserved.