|
|||||||||
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.
Field Summary | |
protected ClassDescriptor |
m_ClassDescriptor
|
protected PersistentField |
m_PersistentField
|
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()
|
ClassDescriptor |
getClassDescriptor()
Gets the classDescriptor. |
PersistentField |
getPersistentField()
|
void |
setClassDescriptor(ClassDescriptor classDescriptor)
Sets the classDescriptor. |
void |
setPersistentField(java.lang.Class c,
java.lang.String fieldname)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected PersistentField m_PersistentField
protected ClassDescriptor m_ClassDescriptor
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 PersistentField getPersistentField()
public java.lang.String getAttributeName()
public ClassDescriptor getClassDescriptor()
public void setClassDescriptor(ClassDescriptor classDescriptor)
classDescriptor
- The classDescriptor to setpublic java.lang.String toString()
toString
in class DescriptorBase
public void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
AttributeContainer
addAttribute
in interface AttributeContainer
attributeName
- 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 AttributeContainer
attributeName
- 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 AttributeContainer
attributeName
- the attribute to retrieve
AttributeContainer.getAttribute(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |