Class XmlNameTable

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected XmlNameTable()
      Initializes a new instance of the XmlNameTable class.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract String Add​(char[] array, int offset, int length)
      Reads an XML Schema from the supplied stream.
      abstract String Add​(String array)
      When overridden in a derived class, atomizes the specified String and adds it to the XmlNameTable.
      abstract String Get​(char[] array, int offset, int length)
      When overridden in a derived class, gets the atomized String containing the same characters as the specified range of characters in the given array.
      abstract String Get​(String array)
      When overridden in a derived class, gets the atomized String containing the same value as the specified String.
    • Constructor Detail

      • XmlNameTable

        protected XmlNameTable()
        Initializes a new instance of the XmlNameTable class.
    • Method Detail

      • Add

        public abstract String Add​(String array)
        When overridden in a derived class, atomizes the specified String and adds it to the XmlNameTable.
        Parameters:
        array - : The name to add.
        Returns:
        The new atomized String or the existing one if it already exists.
        Throws:
        ArgumentNullException - array is null.
      • Add

        public abstract String Add​(char[] array,
                                   int offset,
                                   int length)
        Reads an XML Schema from the supplied stream.
        Parameters:
        array - The character array containing the name to add.
        offset - Zero-based index into the array specifying the first character of the name.
        length - The number of characters in the name.
        Returns:
        The new atomized String or the existing one if it already exists. If length is zero, String.Empty is returned
      • Get

        public abstract String Get​(String array)
        When overridden in a derived class, gets the atomized String containing the same value as the specified String.
        Parameters:
        array - The name to look up.
        Returns:
        The atomized String or null if the String has not already been atomized.
        Throws:
        ArgumentNullException - : array is null.
      • Get

        public abstract String Get​(char[] array,
                                   int offset,
                                   int length)
        When overridden in a derived class, gets the atomized String containing the same characters as the specified range of characters in the given array.
        Parameters:
        array - The character array containing the name to add.
        offset - Zero-based index into the array specifying the first character of the name.
        length - The number of characters in the name.
        Returns:
        The atomized String or null if the String has not already been atomized. If length is zero, String.Empty is returned