public class AttributeDescriptorBase
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
AttributeDescriptorBase(ClassDescriptor descriptor)
Constructor declaration
|
Modifier and Type | Method and Description |
---|---|
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() |
public AttributeDescriptorBase(ClassDescriptor descriptor)
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 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 presentAttributeContainer.getAttribute(String, String)
public java.lang.String getAttribute(java.lang.String attributeName)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrieveAttributeContainer.getAttribute(String)
public java.util.Map getAttributes()
public java.lang.String[] getAttributeNames()
null
)(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30