|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.metadata.DescriptorBase
org.apache.ojb.broker.metadata.AttributeDescriptorBase
Is the base class for all other attribute descriptors. It holds basic the mapping information for a specific attribute.
| Constructor Summary | |
AttributeDescriptorBase(ClassDescriptor descriptor)
Constructor declaration |
|
| Method Summary | |
void |
addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Store the specified attribute and it's value. |
java.lang.String |
getAttribute(java.lang.String attributeName)
Get the value of an attribute |
java.lang.String |
getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Get the value of an attribute |
java.lang.String |
getAttributeName()
|
java.lang.String[] |
getAttributeNames()
Returns an array of the names of all atributes of this descriptor. |
java.util.Map |
getAttributes()
Returns the attribute map (name, value) of this descriptor. |
ClassDescriptor |
getClassDescriptor()
Gets the classDescriptor. |
PersistentField |
getPersistentField()
|
void |
setClassDescriptor(ClassDescriptor classDescriptor)
Sets the classDescriptor. |
void |
setPersistentField(java.lang.Class c,
java.lang.String fieldname)
|
void |
setPersistentField(PersistentField pf)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeDescriptorBase(ClassDescriptor descriptor)
| Method Detail |
public void setPersistentField(java.lang.Class c,
java.lang.String fieldname)
MetadataException - if an error occours when setting the PersistenteFieldpublic void setPersistentField(PersistentField pf)
public PersistentField getPersistentField()
public java.lang.String getAttributeName()
public ClassDescriptor getClassDescriptor()
public void setClassDescriptor(ClassDescriptor classDescriptor)
classDescriptor - The classDescriptor to setpublic java.lang.String toString()
public void addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
AttributeContainer
addAttribute in interface AttributeContainerattributeName - the name of the attribute to retrieveattributeValue - the attribute's valueAttributeContainer.addAttribute(String, String)
public java.lang.String getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
AttributeContainer
getAttribute in interface AttributeContainerattributeName - the attribute to retrievedefaultValue - the value to return if the attribute is not present
AttributeContainer.getAttribute(String, String)public java.lang.String getAttribute(java.lang.String attributeName)
AttributeContainer
getAttribute in interface AttributeContainerattributeName - the attribute to retrieve
AttributeContainer.getAttribute(String)public java.util.Map getAttributes()
public java.lang.String[] getAttributeNames()
null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||