org.idoox.xmlrpc.header
Class Schema

java.lang.Object
  extended byorg.idoox.xmlrpc.header.Schema

public class Schema
extends java.lang.Object

Class represents XML schema location and it's namespace.

Since:
4.5
See Also:
Header
Component:
Core

Constructor Summary
Schema()
          Construct empty Schema.
Schema(java.lang.String location, java.lang.String namespace)
          Construct Schema.
 
Method Summary
 java.lang.String getLocation()
          Retrive location of schema.
 java.lang.String getNamespace()
          Retrives namespace of schema.
 void setLocation(java.lang.String location)
          Sets schema location.
 void setNamespace(java.lang.String namespace)
          Sets schema namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema()
Construct empty Schema.


Schema

public Schema(java.lang.String location,
              java.lang.String namespace)
Construct Schema. Schema is located at location and have namespace namespace.

Parameters:
location - Location of schema. It could be URL (for example, "file://blabla.xsd") or resource name ("resource:/blbabla.xsd").
namespace - namespace of schema
Method Detail

getLocation

public java.lang.String getLocation()
Retrive location of schema.

Returns:
schema location

setLocation

public void setLocation(java.lang.String location)
Sets schema location.

Parameters:
location - Location of schema.

getNamespace

public java.lang.String getNamespace()
Retrives namespace of schema.

Returns:
schema nemaespace

setNamespace

public void setNamespace(java.lang.String namespace)
Sets schema namespace.

Parameters:
namespace - schema namespace