org.apache.ojb.broker.metadata
Interface AttributeContainer

All Superinterfaces:
Serializable
All Known Subinterfaces:
QueryCustomizer
All Known Implementing Classes:
AnonymousFieldDescriptor, ArgumentDescriptor, AttributeDescriptorBase, ClassDescriptor, CollectionDescriptor, ConnectionPoolDescriptor, DeleteProcedureDescriptor, DescriptorRepository, FieldDescriptor, InsertProcedureDescriptor, JdbcConnectionDescriptor, ObjectCacheDescriptor, ObjectReferenceDescriptor, PBPoolInfo, PoolConfiguration, ProcedureDescriptor, QueryCustomizerDefaultImpl, SequenceDescriptor, SuperReferenceDescriptor, UpdateProcedureDescriptor

public interface AttributeContainer
extends 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(String attributeName, String attributeValue)
          Store the specified attribute and it's value.
 String getAttribute(String attributeName)
          Get the value of an attribute
 String getAttribute(String attributeName, String defaultValue)
          Get the value of an attribute
 

Method Detail

addAttribute

void addAttribute(String attributeName,
                  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

String getAttribute(String attributeName,
                    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

String getAttribute(String attributeName)
Get the value of an attribute

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


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.