Class ProcessingInstruction

  • All Implemented Interfaces:
    IExtChild

    public class ProcessingInstruction
    extends Object
    implements IExtChild
    Represents a processing instruction as an extension content object.
    • Constructor Detail

      • ProcessingInstruction

        public ProcessingInstruction​(ProcessingInstruction original)
        Copy constructor.
        Parameters:
        original - the original object to duplicate.
      • ProcessingInstruction

        public ProcessingInstruction​(String text)
        Creates a new ProcessingInstruction object.
        Parameters:
        text - the text of the content (can be null).
    • Method Detail

      • getType

        public ExtChildType getType()
        Description copied from interface: IExtChild
        Gets the type of child this object is (one of the ExtChildType values).
        Specified by:
        getType in interface IExtChild
        Returns:
        the type of child this object is.
      • getPI

        public String getPI()
        Gets the processing instruction text.
        Returns:
        the processing instruction text (can be null).
      • setPI

        public void setPI​(String text)
        Sets the processing instruction text.
        Parameters:
        text - the new processing instruction text (can be null).