Class SMSSchema


  • public class SMSSchema
    extends Object
    This class provides methods to obtain service schema and plugin schema from XML documents.
    • Method Detail

      • getSchema

        protected String getSchema​(String serviceName)
                            throws SMSException
        Method returns the XML schema for the given service name in a String format that can stored in a directory.
        Parameters:
        serviceName - name of the service
        Returns:
        service schema in serialized String format
        Throws:
        SMSException
      • getSchema

        public String getSchema()
                         throws SMSException
        Method returns the XML schema for the service in a String format that can stored in a directory.
        Returns:
        service schema in serialized String format
        Throws:
        SMSException
      • getPluginSchema

        public String getPluginSchema​(String serviceName,
                                      String pluginName)
                               throws SMSException
        Method returns the XML plugin schema for the given service name and plugin name in a String format that can stored in a directory.
        Parameters:
        serviceName - name of the service
        pluginName - name of the plugin schema name
        Returns:
        service plugin schema in serialized String format
        Throws:
        SMSException
      • getPluginSchema

        public String getPluginSchema​(String pluginName)
                               throws SMSException
        Method returns the XML plugin schema for the given plugin name in a String format that can stored in a directory.
        Parameters:
        pluginName - name of the plugin schema name
        Returns:
        service plugin schema in serialized String format
        Throws:
        SMSException
      • getPluginSchema

        public String getPluginSchema​(Node pluginName)
                               throws SMSException
        Method returns the XML plugin schema for the given plugin name in a String format that can stored in a directory.
        Parameters:
        pluginName - plugin schema name
        Returns:
        service plugin schema in serialized String format
        Throws:
        SMSException
      • nodeToString

        public static String nodeToString​(Node a)
      • escapeSpecialCharacters

        public static String escapeSpecialCharacters​(String txt)
        The method escapes '&', '<', '>', '"', '''
      • unescapeName

        public static String unescapeName​(String txtName)
        The method reverses the escape sequence "/" to the character "/".