Class XmlRootCopyImpl<T>

java.lang.Object
org.glassfish.hk2.xml.internal.XmlRootCopyImpl<T>
All Implemented Interfaces:
XmlRootCopy<T>

public class XmlRootCopyImpl<T> extends Object implements XmlRootCopy<T>
Author:
jwells
  • Method Details

    • getParent

      public XmlRootHandle<T> getParent()
      Description copied from interface: XmlRootCopy
      Gets the XmlRootHandle from which this copy was created
      Specified by:
      getParent in interface XmlRootCopy<T>
      Returns:
    • getChildRoot

      public T getChildRoot()
      Description copied from interface: XmlRootCopy
      Gets the root of the JavaBean tree
      Specified by:
      getChildRoot in interface XmlRootCopy<T>
      Returns:
      The root of the JavaBean tree. Will only return null if the tree has not yet been created
    • isMergeable

      public boolean isMergeable()
      Description copied from interface: XmlRootCopy
      Returns true if this child copy can still have merge called on it succesfully
      Specified by:
      isMergeable in interface XmlRootCopy<T>
      Returns:
      true if it is still possible to call merge (i.e., there has not been a change to the parent tree since this copy was made)
    • merge

      public void merge()
      Description copied from interface: XmlRootCopy
      Merges the changes made to this tree into the parent tree
      Specified by:
      merge in interface XmlRootCopy<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object