org.apache.ws.jaxme.xs.impl

Class XSLogicalParser.AddedImport

public static class XSLogicalParser.AddedImport extends Object

This class is used to ensure, that schemata aren't loaded twice. It can also be used for preloading schemata.
Constructor Summary
AddedImport(XsAnyURI pTargetNamespace, String pSchemaLocation)
Creates a new instance with the given target namespace and schema location.
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.
Method Summary
booleanequals(Object pOther)
StringgetNamespace()
Returns the imported schemas target namespace.
NodegetNode()
Returns the DOM node, from which the schema is being loaded.
StringgetSchemaLocation()
Returns the URL, from which the schema is being loaded.
inthashCode()

Constructor Detail

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.

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.

Method Detail

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()