1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
package com.wutka.dtd;
import java.io.*;
/** Represents an external ID in an entity declaration
*
* @author Mark Wutka
* @version $Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
*/
public abstract class DTDExternalID implements DTDOutput
{
public String system;
public DTDExternalID()
{
}
/** Writes out a declaration for this external ID */
public abstract void write(PrintWriter out)
throws IOException;
public boolean equals(Object ob)
{
if (ob == this) return true;
if (!(ob instanceof DTDExternalID)) return false;
DTDExternalID other = (DTDExternalID) ob;
if (system == null)
{
if (other.system != null) return false;
}
else
{
if (!system.equals(other.system)) return false;
}
return true;
}
/** Sets the system ID */
public void setSystem(String aSystem)
{
system = aSystem;
}
/** Retrieves the system ID */
public String getSystem()
{
return system;
}
}
|