Package org.xmlpull.v1.builder.impl
Class XmlNamespaceImpl
- java.lang.Object
-
- org.xmlpull.v1.builder.impl.XmlNamespaceImpl
-
- All Implemented Interfaces:
XmlNamespace
public class XmlNamespaceImpl extends Object implements XmlNamespace
Simple implementation.- Author:
- Aleksander Slominski
-
-
Constructor Summary
Constructors Constructor Description XmlNamespaceImpl(String namespaceName)XmlNamespaceImpl(String prefix, String namespaceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetNamespaceName()Namespace name.StringgetPrefix()Prefix can be null.StringtoString()
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Description copied from interface:XmlNamespacePrefix can be null. In this case it will be looked up from XML tree and used if available otherwise it will be automatically created only for serializaiton. TODO: If prefix is empty string it will be used to indicate default namespace.- Specified by:
getPrefixin interfaceXmlNamespace
-
getNamespaceName
public String getNamespaceName()
Description copied from interface:XmlNamespaceNamespace name. Never null. Only allowed to be empty string if prefix is also empty string (used to undeclare default namespace)- Specified by:
getNamespaceNamein interfaceXmlNamespace
-
-