public class SMSSchema extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeSpecialCharacters(String txt)
The method escapes '&', '<', '>', '"', '''
|
static String |
getDummyXML(String serviceName,
String version) |
String |
getPluginSchema(Node pluginName)
Method returns the XML plugin schema for the given plugin name in a
String format that can stored in a directory.
|
String |
getPluginSchema(String pluginName)
Method returns the XML plugin schema for the given plugin name in a
String format that can stored in a directory.
|
String |
getPluginSchema(String serviceName,
String pluginName)
Method returns the XML plugin schema for the given service name and
plugin name in a String format that can stored in a directory.
|
String |
getSchema()
Method returns the XML schema for the service in a String format that can
stored in a directory.
|
protected String |
getSchema(String serviceName)
Method returns the XML schema for the given service name in a String
format that can stored in a directory.
|
protected String |
getServiceName() |
protected Node |
getServiceNode() |
protected String |
getServiceVersion() |
static Document |
getXMLDocument(InputStream in) |
static Document |
getXMLDocument(InputStream in,
boolean validation) |
static Document |
getXMLDocument(String xml,
boolean validation) |
static String |
nodeToString(Node a) |
static String |
unescapeName(String txtName)
The method reverses the escape sequence "/" to the character "/".
|
protected String getServiceName() throws SMSException
SMSException
protected String getServiceVersion() throws SMSException
SMSException
protected Node getServiceNode() throws SMSException
SMSException
protected String getSchema(String serviceName) throws SMSException
serviceName
- name of the serviceSMSException
public String getSchema() throws SMSException
SMSException
public String getPluginSchema(String serviceName, String pluginName) throws SMSException
serviceName
- name of the servicepluginName
- name of the plugin schema nameSMSException
public String getPluginSchema(String pluginName) throws SMSException
pluginName
- name of the plugin schema nameSMSException
public String getPluginSchema(Node pluginName) throws SMSException
pluginName
- plugin schema nameSMSException
public static Document getXMLDocument(String xml, boolean validation) throws SchemaException, SMSException
SchemaException
SMSException
public static Document getXMLDocument(InputStream in) throws SchemaException, SMSException
SchemaException
SMSException
public static Document getXMLDocument(InputStream in, boolean validation) throws SchemaException, SMSException
SchemaException
SMSException
public static String escapeSpecialCharacters(String txt)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.