|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.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)
IQNameAcceptorCheck whether the acceptor accepts given pair.
accepts in interface IQNameAcceptornamespaceURI - 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()
IQNameAcceptorEnumSet with both
flags.
getAccepts in interface IQNameAcceptorACCEPTS_* constants.public String toString()
toString in class Objectpublic String getNamespaceUri()
IQNameAcceptor
getNamespaceUri in interface IQNameAcceptorpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean acceptsNamespace(String namespaceURI)
IForeignNodeP
acceptsNamespace in interface IForeignNodePnamespaceURI - the namespace to check.
public Set<String> getNamespaces()
IForeignNodePnull.
getNamespaces in interface IForeignNodePnull 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 | |||||||||