net.sf.jaxme.xs.xml
Class XsNamespaceList

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.XsNamespaceList

public class XsNamespaceList
extends java.lang.Object

Implementation of the xs:namespaceList type, specified like this:

  <xs:simpleType name="namespaceList">
    <xs:annotation>
      <xs:documentation>
        A utility type, not for public use
      </xs:documentation>
    </xs:annotation>
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="##any"/>
          <xs:enumeration value="##other"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:simpleType>
        <xs:list>
          <xs:simpleType>
            <xs:union memberTypes="xs:anyURI">
              <xs:simpleType>
                <xs:restriction base="xs:token">
                  <xs:enumeration value="##targetNamespace"/>
                   <xs:enumeration value="##local"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:union>
          </xs:simpleType>
        </xs:list>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>
 

Author:
Jochen Wiedmann

Field Summary
static XsNamespaceList ANY
           
static XsNamespaceList OTHER
           
 
Method Summary
 XsAnyURI[] getUris()
          Returns the array of URI's specified in the namespace list.
 boolean isAny()
          Returns whether the namespace list matches ##any.
 boolean isLocalSet()
          Returns whether the URI list did contain the value ##targetNamespace.
 boolean isOther()
          Returns whether the namespace list matches ##other.
 boolean isTargetNamespaceSet()
          Returns whether the URI list did contain the value ##targetNamespace.
static XsNamespaceList valueOf(java.lang.String pValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final XsNamespaceList ANY

OTHER

public static final XsNamespaceList OTHER
Method Detail

valueOf

public static XsNamespaceList valueOf(java.lang.String pValue)

isAny

public boolean isAny()

Returns whether the namespace list matches ##any. This is the case if, and only if, isOther() returns false, and getUris() returns null.


isOther

public boolean isOther()

Returns whether the namespace list matches ##other. This is the case if, and only if, isAny() returns false, and getUris() returns null.


getUris

public XsAnyURI[] getUris()

Returns the array of URI's specified in the namespace list. Returns non-null if, and only if, isAny() and isOther() return false.

If this method returns non-null, you may also use the methods isTargetNamespaceSet() and isLocalSet().


isTargetNamespaceSet

public boolean isTargetNamespaceSet()

Returns whether the URI list did contain the value ##targetNamespace.


isLocalSet

public boolean isLocalSet()

Returns whether the URI list did contain the value ##targetNamespace.