Skip navigation links


com.bea.content.manager.servlets.attribute
Interface AttributeResolver<V>

All Known Implementing Classes:
com.bea.content.manager.servlets.attribute.impl.AbstractContentAttributeResolver, BinaryPropertyResolver, ContentPropertyResolver, DownloadBinaryPropertyResolver, MultiValuePropertyResolver, NodeAttributeResolver, NodeSearchAttributeResolver, SearchAttributeResolver, ShowBinaryPropertyResolver, SingleValuePropertyResolver, TextBinaryPropertyResolver, URLBinaryPropertyResolver, VersionedSearchAttributeResolver

public interface AttributeResolver<V>

Method Summary
 V resolveAttribute(AttributeContext context)
          Resolves an object based on the provided AttributeContext.
 void resolveAttribute(AttributeContext context, Writer writer)
          Resolves an object and writes its value to the provided java.io.Writer.
 String resolveAttributeToString(AttributeContext context)
          Returns the string value specified by attributes in AttributeContext

 

Method Detail

resolveAttribute

V resolveAttribute(AttributeContext context)
Resolves an object based on the provided AttributeContext.

If propertyName is null, the default primary property value will be returned.

Parameters
context - The AttributeContext to use when resolving this attribute.
Returns
The specified property value.

resolveAttribute

void resolveAttribute(AttributeContext context,
                      Writer writer)
Resolves an object and writes its value to the provided java.io.Writer.

If propertyName is null, the default primary property value will be written to the java.io.Writer.

Parameters
context - The <AttributeContext> to use when resolving this attribute.
writer - The java.io.Writer to write the property value to.

resolveAttributeToString

String resolveAttributeToString(AttributeContext context)
Returns the string value specified by attributes in AttributeContext
Parameters
context - AttributeContext to retrieve context attributes from.
Returns
the java.lang.String version of the Object returned from resolveAttribute(context)

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.