|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wutka.dtd.DTDCardinal
public class DTDCardinal
Represents the various cardinality values for a DTD item.
| Field Summary | |
|---|---|
String |
name
|
static DTDCardinal |
NONE
Indicates no cardinality (implies a single object) |
static DTDCardinal |
ONEMANY
Indicates that there can be one-to-many occurrances of an item |
static DTDCardinal |
OPTIONAL
Indicates that an item is optional (zero-to-one) |
int |
type
|
static DTDCardinal |
ZEROMANY
Indicates that there can be zero-to-many occurrances of an item |
| Constructor Summary | |
|---|---|
DTDCardinal(int aType,
String aName)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object ob)
|
void |
write(PrintWriter out)
Writes the notation for this cardinality value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DTDCardinal NONE
public static final DTDCardinal OPTIONAL
public static final DTDCardinal ZEROMANY
public static final DTDCardinal ONEMANY
public int type
public String name
| Constructor Detail |
|---|
public DTDCardinal(int aType,
String aName)
| Method Detail |
|---|
public boolean equals(Object ob)
equals in class Object
public void write(PrintWriter out)
throws IOException
write in interface DTDOutputIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||