com.ibm.commerce.component.bod

Class AbstractBusinessObjectDocument

  • java.lang.Object
    • com.ibm.commerce.component.bod.AbstractBusinessObjectDocument
    • Field Detail

      • COPYRIGHT

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

      • AbstractBusinessObjectDocument

        public AbstractBusinessObjectDocument()
        Default constructor
      • AbstractBusinessObjectDocument

        public AbstractBusinessObjectDocument(ActivityToken newToken)
        Constructs a Business Object Document given an activity token
        Parameters:
        newToken -
      • AbstractBusinessObjectDocument

        public AbstractBusinessObjectDocument(ActivityToken newToken,
                                              DataArea newDataArea)
        Creates a BusinessObjectDocument with an ActivityToken and a defined DataArea
        Parameters:
        newToken -
        newDataArea -
    • Method Detail

      • getValue

        public java.lang.Object getValue(java.lang.Object endNode,
                                         java.lang.String property)
        Gets the value of the given property of a given node
        Specified by:
        getValue in interface BusinessObjectDocument
        Parameters:
        endNode - the object that has the given property
        property - the property whose value will be returned.
        Returns:
        the value of endNode.get(property) or endNode.getProperty() if the value is not null. Otherwise, if there is a path that ends with endNode.getAttribute(), the value found with the path will be returned. If none of the two above are satisfied, NullObject.VALUE will be returned
        See Also:
        BusinessObjectDocument.getValue(Object, String)
      • getAction

        public final VerbAction getAction(BaseVO endNode,
                                          java.lang.String attr)
        Returns the verb action given a value object and pathname
        Specified by:
        getAction in interface BusinessObjectDocument
        Parameters:
        endNode - The node that contains the given attribute. For example, if we have a calling chain A.getB().getC().getPrice(), then for the attribute price (we use JavaBean convention) has endNode A.getB().getC().
        attr - the property in a JavaBean
        Returns:
        VerbAction The action that describes the given attribute
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        the String representation of this business object document