|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oxygenxml.validate.nvdl.NamespaceSpecification
class NamespaceSpecification
Stores information about a namespace specification. A namespace is specified with a namespace pattern and a wildcard. The wildcard can be present in multiple places in the namespace specification and each occurence of the wildcard can be replaced with an arbitrary sequence of characters.
| Field Summary | |
|---|---|
(package private) static String |
ANY_NAMESPACE
Constant for any namespace. |
static String |
DEFAULT_WILDCARD
Default value for wildcard. |
(package private) String |
ns
The namespace pattern, may contain one or more occurances of the wildcard. |
(package private) String |
wildcard
The wildcard character, by default it is *. |
| Constructor Summary | |
|---|---|
NamespaceSpecification(String ns)
Creates a namespace specification from a namespace pattern using the default wildcard, that is *. |
|
NamespaceSpecification(String ns,
String wildcard)
Creates a namespace specification from a namespace pattern and a given wildcard. |
|
| Method Summary | |
|---|---|
boolean |
compete(NamespaceSpecification n)
Check if this namespace specification competes with another namespace specification. |
boolean |
covers(String uri)
Checks if a namespace specification covers a specified URI. |
boolean |
equals(Object obj)
Checks for equality with another Namespace specification. |
int |
hashCode()
Get a hashcode for this namespace specification. |
private String[] |
split(String value,
String regexp)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_WILDCARD
static final String ANY_NAMESPACE
String ns
String wildcard
| Constructor Detail |
|---|
public NamespaceSpecification(String ns)
ns - The namespace pattern
public NamespaceSpecification(String ns,
String wildcard)
ns - The namespace patternwildcard - The given wildcard character.| Method Detail |
|---|
public boolean compete(NamespaceSpecification n)
n - The namespace specification we need to check if
it competes with this namespace specification.
private String[] split(String value,
String regexp)
public boolean covers(String uri)
uri - The uri to be checked.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||