Class FlyweightProcessingInstruction

    • Field Detail

      • target

        protected java.lang.String target
        The target of the PI
      • text

        protected java.lang.String text
        The values for the PI as a String
      • values

        protected java.util.Map values
        The values for the PI in name/value pairs
    • Constructor Detail

      • FlyweightProcessingInstruction

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

        public FlyweightProcessingInstruction​(java.lang.String target,
                                              java.util.Map 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​(java.lang.String target,
                                              java.lang.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 Detail

      • getTarget

        public java.lang.String getTarget()
        Description copied from interface: ProcessingInstruction
        This method is the equivalent to the Node.getName()method. It is added for clarity.
        Returns:
        the target of this PI
      • setTarget

        public void setTarget​(java.lang.String target)
        Description copied from interface: ProcessingInstruction
        This method is the equivalent to the Node.setName(java.lang.String)method. It is added for clarity.
        Parameters:
        target - DOCUMENT ME!
      • getValue

        public java.lang.String getValue​(java.lang.String name)
        Description copied from interface: ProcessingInstruction

        Returns the value of a specific name in the PI.

        Parameters:
        name - is the name of the attribute to lookup.
        Returns:
        the value of the named attribute
      • getValues

        public java.util.Map getValues()
        Description copied from interface: ProcessingInstruction
        DOCUMENT ME!
        Returns:
        the values for this processing instruction as a Map