com.mkdoc.schema
Class AbstractSchemaResource

java.lang.Object
  extended bycom.mkdoc.schema.AbstractSchemaResource
Direct Known Subclasses:
SchemaProperty

public abstract class AbstractSchemaResource
extends java.lang.Object

A base class for schema resource types.

Version:
0.1 2005-06-15
Author:
Philip Shaw

Field Summary
protected  java.lang.String label
          The resource label.
protected  java.lang.String name
          The unique resource name.
protected  java.lang.String uri
          The resource URI.
 
Constructor Summary
AbstractSchemaResource()
           
 
Method Summary
 java.lang.String getLabel()
          Get the human-readable label for the class.
 java.lang.String getName()
          Get a unique "camel case" name for the class.
 java.lang.String getUri()
          Get the resource URI of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected java.lang.String uri
The resource URI.

Since:
Version 0.1 2005-06-15

label

protected java.lang.String label
The resource label.

Since:
Version 0.1 2005-06-15

name

protected java.lang.String name
The unique resource name.

Since:
Version 0.1 2005-06-15
Constructor Detail

AbstractSchemaResource

public AbstractSchemaResource()
Method Detail

getUri

public final java.lang.String getUri()
Get the resource URI of the class.

Returns:
The URI of the class.
Since:
Version 0.1 2005-06-15

getLabel

public final java.lang.String getLabel()
Get the human-readable label for the class.

Returns:
The human-readable label for the class.
Since:
Version 0.1 2005-06-15

getName

public final java.lang.String getName()
Get a unique "camel case" name for the class.

This often, but not always, coincides with the URI suffix for the type.

Returns:
A name that is unique within a given schema.