org.nakedobjects.runtime.snapshot
Class XmlSchema

java.lang.Object
  extended by org.nakedobjects.runtime.snapshot.XmlSchema

public final class XmlSchema
extends java.lang.Object

Represents the schema for the derived snapshot.


Field Summary
static java.lang.String DEFAULT_PREFIX
          The base part of the namespace prefix to use if none explicitly supplied in the constructor.
 
Constructor Summary
XmlSchema()
           
XmlSchema(java.lang.String uriBase, java.lang.String prefix)
           
 
Method Summary
 java.lang.String getPrefix()
          The prefix to the namespace for the application.
 java.lang.String getUri()
          The URI of the application namespace.
 java.lang.String getUriBase()
          The base of the Uri in use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PREFIX

public static final java.lang.String DEFAULT_PREFIX
The base part of the namespace prefix to use if none explicitly supplied in the constructor.

See Also:
Constant Field Values
Constructor Detail

XmlSchema

public XmlSchema()

XmlSchema

public XmlSchema(java.lang.String uriBase,
                 java.lang.String prefix)
Parameters:
uriBase - the prefix for the application namespace's URIs
prefix - the prefix for the application namespace's prefix
Method Detail

getUriBase

public java.lang.String getUriBase()
The base of the Uri in use. All namespaces are concatenated with this. The namespace string will be the concatenation of the plus the package name of the class of the object being referenced. If not specified in the constructor, then #DEFAULT_URI_PREFIX is used.


getUri

public java.lang.String getUri()
The URI of the application namespace. The value returned will be null until a Snapshot is created.


getPrefix

public java.lang.String getPrefix()
The prefix to the namespace for the application.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.