|
|||||||||
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 | |
---|---|
java.lang.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,
java.lang.String aName)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object ob)
|
void |
write(java.io.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 java.lang.String name
Constructor Detail |
---|
public DTDCardinal(int aType, java.lang.String aName)
Method Detail |
---|
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
public void write(java.io.PrintWriter out) throws java.io.IOException
write
in interface DTDOutput
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |