org.apache.ws.jaxme.xs.impl
Class XSLogicalParser.AddedImport

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSLogicalParser.AddedImport
Enclosing class:
XSLogicalParser

public static class XSLogicalParser.AddedImport
extends java.lang.Object

This class is used to ensure, that schemata aren't loaded twice. It can also be used for preloading schemata.


Constructor Summary
XSLogicalParser.AddedImport(java.lang.String pTargetNamespace, java.lang.String pSchemaLocation)
          Creates a new instance with the given target namespace and schema location.
XSLogicalParser.AddedImport(java.lang.String pTargetNamespace, java.lang.String pSchemaLocation, org.w3c.dom.Node pNode)
          Creates a new instance with the given target namespace and schema location.
XSLogicalParser.AddedImport(XsAnyURI pTargetNamespace, java.lang.String pSchemaLocation)
          Creates a new instance with the given target namespace and schema location.
 
Method Summary
 boolean equals(java.lang.Object pOther)
           
 java.lang.String getNamespace()
          Returns the imported schemas target namespace.
 org.w3c.dom.Node getNode()
          Returns the DOM node, from which the schema is being loaded.
 java.lang.String getSchemaLocation()
          Returns the URL, from which the schema is being loaded.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLogicalParser.AddedImport

public XSLogicalParser.AddedImport(XsAnyURI pTargetNamespace,
                                   java.lang.String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.

Parameters:
pTargetNamespace - The schemas target namespace.
pSchemaLocation - The schemas location.

XSLogicalParser.AddedImport

public XSLogicalParser.AddedImport(java.lang.String pTargetNamespace,
                                   java.lang.String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.

Parameters:
pTargetNamespace - The schemas target namespace.
pSchemaLocation - The schemas location.

XSLogicalParser.AddedImport

public XSLogicalParser.AddedImport(java.lang.String pTargetNamespace,
                                   java.lang.String pSchemaLocation,
                                   org.w3c.dom.Node pNode)
Creates a new instance with the given target namespace and schema location. The schema isn't parsed from the location. Instead, the supplied nodes contents should be used as a schema.

Parameters:
pTargetNamespace - The schemas target namespace.
pSchemaLocation - The schemas location.
pNode - The schemas contents as a DOM node.
Method Detail

equals

public boolean equals(java.lang.Object pOther)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getNamespace

public java.lang.String getNamespace()
Returns the imported schemas target namespace.


getSchemaLocation

public java.lang.String getSchemaLocation()
Returns the URL, from which the schema is being loaded. Returns null, if the schema is loaded from a DOM node.


getNode

public org.w3c.dom.Node getNode()
Returns the DOM node, from which the schema is being loaded. Returns null, if the schema is loaded from an URL.