com.bea.content
Class NestedPropertyHelper

java.lang.Object
  extended by com.bea.content.NestedPropertyHelper

public class NestedPropertyHelper
extends Object

Helper class to dive into nesting for Property by use of delimeted name.


Constructor Summary
NestedPropertyHelper()
           
 
Method Summary
static Property constructIndexedNames(int index, Property property, boolean isMultiValued)
          Construct indexed names for a property (and its contained nested properties).
static String getNameFromIndexedName(String indexedName)
          Determine the property definition name (ie country.name) for a given indexed name (ie country[0].name).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedPropertyHelper

public NestedPropertyHelper()
Method Detail

getNameFromIndexedName

public static String getNameFromIndexedName(String indexedName)
Determine the property definition name (ie country.name) for a given indexed name (ie country[0].name).

Parameters
indexedName - The indexedName
Returns
String PropertyDefinition name

constructIndexedNames

public static Property constructIndexedNames(int index,
                                             Property property,
                                             boolean isMultiValued)
Construct indexed names for a property (and its contained nested properties). To be used by SPI implementations constructing nested properties upon return to the VCR.

Parameters
index - The index to start with
property - The property object
isMultiValued - True if the property is multi-valued
Returns
The property with its indexed name properly constructed.


Copyright © 2011, Oracle. All rights reserved.