public abstract class Attribute extends Object implements CayenneMapEntry, XMLSerializable, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Entity |
entity |
protected String |
name |
| Constructor and Description |
|---|
Attribute()
Creates an unnamed Attribute.
|
Attribute(String name)
Creates a named Attribute.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
encodeAsXML(XMLEncoder encoder)
Prints itself as XML to the provided XMLEncoder.
|
Entity |
getEntity()
Returns parent entity that holds this attribute.
|
String |
getName()
Returns the name property of this object.
|
Object |
getParent()
Returns the parent map.
|
void |
setEntity(Entity entity)
Sets parent entity that holds this attribute.
|
void |
setName(String name) |
void |
setParent(Object parent)
Stores the parent map.
|
String |
toString() |
public Attribute()
public Attribute(String name)
public abstract void encodeAsXML(XMLEncoder encoder)
XMLSerializableencodeAsXML in interface XMLSerializablepublic Entity getEntity()
public void setEntity(Entity entity)
public String getName()
CayenneMapEntrygetName in interface CayenneMapEntrypublic void setName(String name)
public Object getParent()
CayenneMapEntrygetParent in interface CayenneMapEntrypublic void setParent(Object parent)
CayenneMapEntrysetParent in interface CayenneMapEntryCopyright © 2001–2023 Apache Cayenne. All rights reserved.