de.ispsoft.jaxme.generator.dtd
Class DTDObject

java.lang.Object
  extended byde.ispsoft.jaxme.generator.dtd.DTDObject
Direct Known Subclasses:
DTDAttribute, DTDElement

public abstract class DTDObject
extends java.lang.Object

An abstract base class for DTDElement and DTDAttribute.

Version:
$Id: DTDObject.java,v 1.2 2003/05/21 03:30:19 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
DTDObject(java.lang.String pName)
          Constructor for DTDObject.
 
Method Summary
 int getMaxOccurs()
          Returns the maxOccurs attribute.
 int getMinOccurs()
          Returns the minOccurs attribute.
 java.lang.String getName()
          Returns the objects name.
abstract  boolean isAttribute()
          Returns whether this object is an Attribute.
 void setMaxOccurs(int pMaxOccurs)
          Sets the maxOccurs attribute.
 void setMinOccurs(int pMinOccurs)
          Sets the minOccurs attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDObject

public DTDObject(java.lang.String pName)
Constructor for DTDObject.

Method Detail

getName

public java.lang.String getName()

Returns the objects name.


setMinOccurs

public void setMinOccurs(int pMinOccurs)

Sets the minOccurs attribute.


getMinOccurs

public int getMinOccurs()

Returns the minOccurs attribute.


setMaxOccurs

public void setMaxOccurs(int pMaxOccurs)

Sets the maxOccurs attribute.


getMaxOccurs

public int getMaxOccurs()

Returns the maxOccurs attribute.


isAttribute

public abstract boolean isAttribute()

Returns whether this object is an Attribute.