|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.export.NameListImpl<R>
R
- the rule type. May be instance of IAttributeRuleP
or INewElementRuleP
only.public final class NameListImpl<R extends ISingleQNameP>
Implementor of the NameListP
interface.
Field Summary | |
---|---|
String |
namespaceURI
The 'local' namespace. |
Method Summary | |
---|---|
boolean |
accepts(String namespaceURI,
String local)
Check whether the acceptor accepts given pair. |
boolean |
acceptsNamespace(String namespaceURI)
Checks if the namelist accepts/contains at least one qname from given namespace. |
boolean |
equals(Object obj)
|
EnumSet<AcceptsEnum> |
getAccepts()
Returns type of qnames, that this rule accepts. |
Map<String,R> |
getLocalNames()
Returns map, that maps String to
AttributeRuleP or NewElementRuleP . |
Set<String> |
getNamespaces()
Tries to obtain a list of namespaces of qnames that are contained in this name list. |
String |
getNamespaceUri()
Returns base namespace (the namespace of local elements). |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String namespaceURI
Method Detail |
---|
public Map<String,R> getLocalNames()
INameListP
Returns map, that maps String
to
AttributeRuleP
or NewElementRuleP
. Each
string represents one local name, and corresponding object holds rules,
that can be used to create this element/attribute's content.
General rule for schema says that each rule must generate finite set of local elements (elements from schema's namespace). Thus, this list will not be infinite.
getLocalNames
in interface INameListP<R extends ISingleQNameP>
public boolean accepts(String namespaceURI, String local)
IQNameAcceptor
Check whether the acceptor accepts given pair.
accepts
in interface IQNameAcceptor
namespaceURI
- the namespace part of the qname. Acceptor must take
both empty-string and null
values as a null namespace.
If the acceptor accepts the attribute qnames also, then local attributes
should have null
as their namespace, regardless of the
value of getNamespaceUri()
function.
local
- the local name part.
public EnumSet<AcceptsEnum> getAccepts()
IQNameAcceptor
EnumSet
with both
flags.
getAccepts
in interface IQNameAcceptor
ACCEPTS_*
constants.public String toString()
toString
in class Object
public String getNamespaceUri()
IQNameAcceptor
getNamespaceUri
in interface IQNameAcceptor
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean acceptsNamespace(String namespaceURI)
IForeignNodeP
acceptsNamespace
in interface IForeignNodeP
namespaceURI
- the namespace to check.
public Set<String> getNamespaces()
IForeignNodeP
null
.
getNamespaces
in interface IForeignNodeP
null
if it cannot be computed and/or represented.
null
namespace is represented as an empty string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |