Package com.persequor.event
Class Namespace
java.lang.Object
com.persequor.event.Namespace
Namespace is a typed value to represent an xml namespace.
Namespace to alias bindings is setup in
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Namespace
Build a namespace based only on alias.boolean
static Namespace
Build a namespace based only on full namespace.static Namespace
Build a namespace based only on full namespace and the alias.static Namespace
Build a namespace based only on full namespace, the alias and the unqualified.getAlias()
getFull()
int
hashCode()
boolean
Flag saying if Namespace forces its nested tags to be namespace prefixed (qualified)boolean
isVoid()
Is this the special "no value"-namespace.toString()
-
Method Details
-
getFull
-
getAlias
-
alias
Build a namespace based only on alias. For example to match the xml tag<my:mytag />
you could use Namespace.alias("my") to represent the namespace If a matching namespace config is found in XmlNamespaceConfiguration, the configuration version is returned including the full namespace and unqualified flag set- Parameters:
namespaceAlias
- the alias as a string- Returns:
- the requested namespace.
- See Also:
-
full
Build a namespace based only on full namespace. For example to match the xml tag<my:mytag xmlns:my="urn:my:namespace" />
you could use Namespace.full("urn:my:namespace") to represent the namespace If a matching namespace config is found in XmlNamespaceConfiguration, the configuration version is returned including the full namespace and unqualified flag set- Parameters:
namespace
- the full namespace as a string- Returns:
- the requested namespace
-
full
Build a namespace based only on full namespace and the alias. For example to match the xml tag<my:mytag xmlns:my="urn:my:namespace" />
you could use Namespace.full("urn:my:namespace") to represent the namespace If a matching namespace config is found in XmlNamespaceConfiguration, the configuration version is returned including the full namespace and unqualified flag set- Parameters:
namespace
- the full namespace as a stringalias
- the alias/prefix- Returns:
- the requested namespace
-
full
Build a namespace based only on full namespace, the alias and the unqualified. For example to match the xml tag<my:mytag xmlns:my="urn:my:namespace" />
you could use Namespace.full("urn:my:namespace") to represent the namespace If a matching namespace config is found in XmlNamespaceConfiguration, the configuration version is returned including the full namespace and unqualified flag set- Parameters:
namespace
- the full namespace as a stringalias
- the alias/prefixunqualified
- flag to show if this namespace is qualified or not- Returns:
- the requested namespace
-
isUnqualified
public boolean isUnqualified()Flag saying if Namespace forces its nested tags to be namespace prefixed (qualified)- Returns:
- true if prefixing is not forced, false otherwise
-
isVoid
public boolean isVoid()Is this the special "no value"-namespace. Name and prefix (alias) is not specified.- Returns:
- true if empty
-
toString
-
equals
-
hashCode
public int hashCode()
-