|
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()
EntityGet entity name
getName in interface Entityprotected 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 Entityequals in class Objectpublic int hashCode()
Entity
Returns hash code of the String entity name.
hashCode in interface EntityhashCode in class Object
|
GXPARSE download | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||