sk.uniba.euromath.document.schema
Interface IQNameAcceptor

All Known Subinterfaces:
IAttributeRuleP, INameListP<R>, INewElementRuleP, ISingleQNameP
All Known Implementing Classes:
AttributeRuleImpl, NameListImpl, NewElementRuleImpl

public interface IQNameAcceptor

Acceptor of the qname.

Author:
Martin Vysny

Method Summary
 boolean accepts(String namespaceUri, String local)
           Check whether the acceptor accepts given pair.
 EnumSet<AcceptsEnum> getAccepts()
          Returns type of qnames, that this rule accepts.
 String getNamespaceUri()
          Returns base namespace (the namespace of local elements).
 

Method Detail

accepts

boolean accepts(String namespaceUri,
                String local)

Check whether the acceptor accepts given pair.

Parameters:
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.
Returns:
true if it accepts given qname, false otherwise.

getAccepts

EnumSet<AcceptsEnum> getAccepts()
Returns type of qnames, that this rule accepts. If the information is not known then the function should return EnumSet with both flags.

Returns:
one of ACCEPTS_* constants.

getNamespaceUri

String getNamespaceUri()
Returns base namespace (the namespace of local elements).

Returns:
base namespace of schema, that created this object.


Copyright © 2003-2006 null. All Rights Reserved.