org.apache.ws.jaxme.xs.impl

Class 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

AddedImport(String pTargetNamespace, String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.
AddedImport(String pTargetNamespace, String pSchemaLocation, Node pNode)
Creates a new instance with the given target namespace and schema location.
AddedImport(XsAnyURI pTargetNamespace, String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.

Method Summary

boolean
equals(Object pOther)
String
getNamespace()
Returns the imported schemas target namespace.
Node
getNode()
Returns the DOM node, from which the schema is being loaded.
String
getSchemaLocation()
Returns the URL, from which the schema is being loaded.
int
hashCode()

Constructor Details

AddedImport

public AddedImport(String pTargetNamespace,
                   String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.
Parameters:
pTargetNamespace - The schemas target namespace.
pSchemaLocation - The schemas location.

AddedImport

public AddedImport(String pTargetNamespace,
                   String pSchemaLocation,
                   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.

AddedImport

public AddedImport(XsAnyURI pTargetNamespace,
                   String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.
Parameters:
pTargetNamespace - The schemas target namespace.
pSchemaLocation - The schemas location.

Method Details

equals

public boolean equals(Object pOther)

getNamespace

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

getNode

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

getSchemaLocation

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

hashCode

public int hashCode()