|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.gorman.xml.parse.toolkit.AbstractEntity
public abstract class AbstractEntity
Abstract realization of Entity
.
This is a common base class for the parser's internal view of entities objects and the application programmer's external view of Entity objects. Entities are presented to the application programmer as immutable objects, but are treated as mutable objects inside the parser. The mutable version is created by subclassing to expose the setters.
Constructor Summary | |
---|---|
protected |
AbstractEntity()
Create an uninitialized AbstractEntity. |
protected |
AbstractEntity(String name)
Create an initialized AbstractEntity. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Defines the equality of two Entity objects
as equality of their names. |
String |
getName()
Get entity name |
int |
hashCode()
Returns hash code of the String entity name. |
AbstractEntity |
newInstance(String name)
Create an immutable AbstractEntity. |
protected void |
setName(String name)
Set name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractEntity(String name)
Create an initialized AbstractEntity.
protected AbstractEntity()
Create an uninitialized AbstractEntity.
Method Detail |
---|
public AbstractEntity newInstance(String name)
Create an immutable AbstractEntity.
public final String getName()
Entity
Get entity name
getName
in interface Entity
protected void setName(String name)
Set name.
public boolean equals(Object obj)
Defines the equality of two Entity
objects
as equality of their names. An Entity
with a null name
is not equal to anything, not even another Entity
with a
null name.
equals
in interface Entity
equals
in class Object
public int hashCode()
Entity
Returns hash code of the String
entity name.
hashCode
in interface Entity
hashCode
in class Object
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |