org.apache.ojb.broker.metadata
Interface AttributeContainer

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
QueryCustomizer
All Known Implementing Classes:
AnonymousFieldDescriptor, ArgumentDescriptor, AttributeDescriptorBase, ClassDescriptor, CollectionDescriptor, ConnectionPoolDescriptor, DeleteProcedureDescriptor, DescriptorRepository, FieldDescriptor, InsertProcedureDescriptor, JdbcConnectionDescriptor, ObjectCacheDescriptor, ObjectReferenceDescriptor, PBPoolInfo, org.apache.ojb.broker.util.pooling.PoolConfiguration, ProcedureDescriptor, QueryCustomizerDefaultImpl, SequenceDescriptor, SuperReferenceDescriptor, UpdateProcedureDescriptor

public interface AttributeContainer
extends java.io.Serializable

This interface defines methods that are required for an object to support the nested "attribute" tag in the repository file.

Author:
Ron Gallagher

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
 

Method Detail

addAttribute

void addAttribute(java.lang.String attributeName,
                  java.lang.String attributeValue)
Store the specified attribute and it's value.

Parameters:
attributeName - the name of the attribute to retrieve
attributeValue - the attribute's value

getAttribute

java.lang.String getAttribute(java.lang.String attributeName,
                              java.lang.String defaultValue)
Get the value of an attribute

Parameters:
attributeName - the attribute to retrieve
defaultValue - the value to return if the attribute is not present
Returns:
the attribute value

getAttribute

java.lang.String getAttribute(java.lang.String attributeName)
Get the value of an attribute

Parameters:
attributeName - the attribute to retrieve
Returns:
the attribute value


(C) 2002 - 2006 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