Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


oracle.adf.model.adapter.dataformat
Class FormatHelper.StructureHelper

java.lang.Object
  extended by oracle.adf.model.adapter.dataformat.FormatHelper.StructureHelper

Enclosing class:
FormatHelper

public static class FormatHelper.StructureHelper
extends java.lang.Object

Class that provides different helper methods for the structure definition extracted from a format structure handler.


Method Summary
 AccessorDef getRootAccessor(StructureDefinition parent, boolean isCollection, DefinitionContext ctx)
          Creates a wrapper accessor definition as if that returns the structure definition created by the FormatStructureHandler implementation.The return accessor will have a name "Data".
 MethodDef getRootMethod(StructureDefinition parent, boolean isCollection, DefinitionContext ctx)
          Creates a wrapper method definition to define a virtual method FormatHelper.METHOD_CREATE as if that returns the structure definition created by the FormatStructureHandler implementation.The returned collection will have a name "Data".

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getRootMethod

public MethodDef getRootMethod(StructureDefinition parent,
                               boolean isCollection,
                               DefinitionContext ctx)
Creates a wrapper method definition to define a virtual method FormatHelper.METHOD_CREATE as if that returns the structure definition created by the FormatStructureHandler implementation.The returned collection will have a name "Data".

This virtual method will facilitate to pass definition parameters to the data control instances. The caller should add the parameters to the returned method if any. The return value of the method is the structure definition that the concrete implementation class returns.

Parameters:
parent - parent of the returned method definition.
isCollection - if the method returns a collection.
ctx - current definition context.
Returns:
the virtual method definition.
See Also:
FormatStructureHandler.getStructure(java.lang.String, oracle.binding.meta.DefinitionContext)

getRootAccessor

public AccessorDef getRootAccessor(StructureDefinition parent,
                                   boolean isCollection,
                                   DefinitionContext ctx)
Creates a wrapper accessor definition as if that returns the structure definition created by the FormatStructureHandler implementation.The return accessor will have a name "Data".
Parameters:
parent - parent of the returned method definition.
isCollection - if the method returns a collection.
ctx - current definition context.
Returns:
the accessor definition.
See Also:
FormatStructureHandler.getStructure(java.lang.String, oracle.binding.meta.DefinitionContext)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


Copyright © 1997, 2009, Oracle. All rights reserved.