Class FlyweightProcessingInstruction

All Implemented Interfaces:
Serializable, Cloneable, Node, ProcessingInstruction
Direct Known Subclasses:
DefaultProcessingInstruction

public class FlyweightProcessingInstruction extends AbstractProcessingInstruction

FlyweightProcessingInstruction is a Flyweight pattern implementation of a singly linked, read-only XML Processing Instruction.

This node could be shared across documents and elements though it does not support the parent relationship.

Version:
$Revision: 1.7 $
See Also:
  • Field Details

    • target

      protected String target
      The target of the PI
    • text

      protected String text
      The values for the PI as a String
    • values

      protected Map<String,String> values
      The values for the PI in name/value pairs
  • Constructor Details

    • FlyweightProcessingInstruction

      public FlyweightProcessingInstruction()
      A default constructor for implementors to use.
    • FlyweightProcessingInstruction

      public FlyweightProcessingInstruction(String target, Map<String,String> values)

      This will create a new PI with the given target and values

      Parameters:
      target - is the name of the PI
      values - is the Map of the values for the PI
    • FlyweightProcessingInstruction

      public FlyweightProcessingInstruction(String target, String text)

      This will create a new PI with the given target and values

      Parameters:
      target - is the name of the PI
      text - is the values for the PI as text
  • Method Details