| java.lang.Object org.apache.cxf.aegis.util.NamespaceHelper
Method Summary | |
public static QName | createQName(NamespaceContext nc, String value) | public static QName | createQName(Element e, String value, String defaultNamespace) | public static String | getPrefix(Element element, String namespaceURI) | public static void | getPrefixes(Element element, String namespaceURI, List<String> prefixes) | public static String | getUniquePrefix(Element element, String namespaceURI) Create a unique namespace uri/prefix combination.
Parameters: nsUri - The namespace with the specified URI. | public static String | getUniquePrefix(XMLStreamWriter writer, String namespaceURI, boolean declare) Create a unique namespace uri/prefix combination.
Parameters: nsUri - The namespace with the specified URI. | public static String | getUniquePrefix(XMLStreamWriter writer) | public static String | makeNamespaceFromClassName(String className, String protocol) Generates the name of a XML namespace from a given class name and
protocol. | public static String | makePackageName(String namespace) | public static QName | readQName(XMLStreamReader reader) Reads a QName from the element text. |
getUniquePrefix | public static String getUniquePrefix(Element element, String namespaceURI)(Code) | | Create a unique namespace uri/prefix combination.
Parameters: nsUri - The namespace with the specified URI. If one doesn't exist, oneis created. |
makeNamespaceFromClassName | public static String makeNamespaceFromClassName(String className, String protocol)(Code) | | Generates the name of a XML namespace from a given class name and
protocol. The returned namespace will take the form
protocol://domain , where protocol is the
given protocol, and domain the inversed package name of
the given class name. For instance, if the given class name is
org.codehaus.xfire.services.Echo , and the protocol is
http , the resulting namespace would be
http://services.xfire.codehaus.org .
Parameters: className - the class name Parameters: protocol - the protocol (eg. http ) the namespace |
makePackageName | public static String makePackageName(String namespace)(Code) | | Method makePackageName
Parameters: namespace - |
|
|