Class YXmlHook<T>

All Implemented Interfaces:
Iterable<Map.Entry<String,Item>>

public class YXmlHook<T> extends YMap<T>
  • Constructor Details

    • YXmlHook

      public YXmlHook(String hookName)
      Parameters:
      hookName - nodeName of the DOM Node.
  • Method Details

    • getHookName

      public String getHookName()
    • setHookName

      public void setHookName(String hookName)
    • copy

      public YXmlHook copy()
      Creates an Item with the same effect as this Item (without position effect)
      Overrides:
      copy in class YMap<T>
      Returns:
      A new copy of this YMap.
    • clone

      public YXmlHook<T> clone()
      Makes a copy of this data type that can be included somewhere else. Note that the content is only readable _after_ it has been included somewhere in the Ydoc.
      Overrides:
      clone in class YMap<T>
      Returns:
      YXmlHook
    • write

      public void write(UpdateEncoder encoder)
      Transform the properties of this type to binary and write it to a BinaryEncoder. This is called when this Item is sent to a remote peer.
      Overrides:
      write in class YMap<T>
      Parameters:
      encoder - The encoder to write data to.
    • readYXmlHook

      public static YXmlHook readYXmlHook(UpdateDecoder decoder)
      Static method to read a YXmlHook from a decoder.
      Parameters:
      decoder - The decoder to read data from.
      Returns:
      A new YXmlHook instance.