|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunannoy.util.ArgCheck
soapical.util.XMLArgCheck
Handy functions for checking XML arguments
Constructor Summary | |
XMLArgCheck()
|
Method Summary | |
static void |
nonNullAttrNamespace(java.lang.String location,
java.lang.String qName,
org.xml.sax.helpers.NamespaceSupport namespaces)
Checks that the namespace URI associated with the prefix of the qName argument is not null. |
static void |
nonNullNamespace(java.lang.String qName,
org.xml.sax.helpers.NamespaceSupport namespaces)
Checks that the namespace URI associated with the prefix of the qName argument is not null |
static void |
nonNullNamespace(java.lang.String location,
java.lang.String qName,
org.xml.sax.helpers.NamespaceSupport namespaces)
Checks that the namespace URI associated with the prefix of the qName argument is not null |
static void |
notQName(java.lang.String location,
java.lang.String argName,
java.lang.String argValue)
Checks that the ncName is not a qualified XML name |
Methods inherited from class unannoy.util.ArgCheck |
argString, argString, beginMessage, beginMessage, beginMessage, notNull, notNull, notNullOrEmpty, notNullOrEmpty |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLArgCheck()
Method Detail |
public static void nonNullAttrNamespace(java.lang.String location, java.lang.String qName, org.xml.sax.helpers.NamespaceSupport namespaces) throws NsPrefixUnresolvedException
qName
argument is not null. The difference
between this and nonNullNamespace
is that here
we will do NOT check the default namespace.
location
- a description of where the error occured;
this would most likely be a function name
in your code (this may be null)qName
- a qualifed XML name - if there is no
prefix, we will never throw an exception,
because unprefixed attributes do not belong
to any namespacenamespaces
- where to check the namespace URI
NsPrefixUnresolvedException
- if the namespace is nullpublic static void nonNullNamespace(java.lang.String location, java.lang.String qName, org.xml.sax.helpers.NamespaceSupport namespaces) throws NsPrefixUnresolvedException
qName
argument is not null
location
- a description of where the error occured;
this would most likely be a function name
in your code (this may be null)qName
- either a qualifed XML name or a localName
(NCName), if the latter, we assume the
default namespace is what's worrying younamespaces
- where to check the namespace URI
NsPrefixUnresolvedException
- if the namespace is nullpublic static void nonNullNamespace(java.lang.String qName, org.xml.sax.helpers.NamespaceSupport namespaces) throws NsPrefixUnresolvedException
qName
argument is not null
NsPrefixUnresolvedException
- if the namespace is nullpublic static void notQName(java.lang.String location, java.lang.String argName, java.lang.String argValue) throws java.lang.IllegalArgumentException
ncName
is not a qualified XML name
location
- a description of the check was performed
this would most likely be a function name
in your code (this may be null)argName
- the name of the argument to checkargValue
- the value of the argument to check (that is,
the allegedly non-qualified name)
java.lang.IllegalArgumentException
- if the argument is qualified
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |