com.ibm.commerce.giftregistry.service.valueobjects

Class ValueObjectContext

  • java.lang.Object
    • com.ibm.commerce.giftregistry.service.valueobjects.ValueObjectContext


  • public class ValueObjectContext
    extends java.lang.Object
    The context of a value object. A ValueObjectContext contains the parent value object of the context, and the name of the node that leads to the current context. For example, GiftRegistryVO's getGiftItems() may returns a list of GiftRegistryItemVO. A GiftRegistryVO's context may have an instance of GiftRegistryVO as parent, and "giftItems" as its node name.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ValueObjectContext(BaseVO theParent, java.lang.String name)
      Constructs a context for a value object.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ValueObjectContext

        public ValueObjectContext(BaseVO theParent,
                                  java.lang.String name)
        Constructs a context for a value object.
        Parameters:
        theParent - The parent that holds this value object
        name - The name of the node that represents this value object
    • Method Detail

      • getParent

        public BaseVO getParent()
        Returns:
        the parent node of the context
      • getNodeName

        public java.lang.String getNodeName()
        Returns:
        the node name that leads to the context
      • setNodeName

        public void setNodeName(java.lang.String name)
        sets the node name
        Parameters:
        name - the name of the node that leads to the context
      • setParent

        public void setParent(BaseVO theParent)
        sets the parent of the context
        Parameters:
        theParent - the parent of the context
      • getDescriptor

        public java.lang.String getDescriptor()
        Returns:
        the descriptor string that represents the path that leads to the context