com.mkdoc.schema
Class AbstractSchemaProperty

java.lang.Object
  |
  +--com.mkdoc.schema.AbstractSchemaProperty
Direct Known Subclasses:
DCElementProperty, DCTermProperty, UKeGMSProperty

public abstract class AbstractSchemaProperty
extends java.lang.Object

A base class for schema resource types.

Version:
0.7 2005-10-19
Author:
Philip Shaw

Field Summary
protected  boolean encoding
          Whether the property has encoding schemes that may apply to it.
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.
protected  boolean uriEncoding
          Whether the property may have a URI encoding schemes.
 
Constructor Summary
AbstractSchemaProperty()
           
 
Method Summary
abstract  boolean equals(java.lang.Object other)
          Check equivalance of properties.
 java.lang.String getBNodeVariable()
          Get a unique varible name for extended bNode queries.
 java.lang.String getLabel()
          Get the human-readable label for the class.
abstract  java.util.Locale getLocale()
          Get the locale of the property for case conversions, etc.
 java.lang.String getName()
          Get a unique "camel case" name for the class.
abstract  java.lang.String getNamespacePrefix()
          Get the namespace prefix for the class.
 java.lang.String getNameVariable()
          Get a unique name varible for query handling.
 java.lang.String getParameterName()
          Get a unique parameter name for HTML form handling.
 java.lang.String getQualifiedName()
          Get the qualified name of the class, with namespace prefix.
 java.lang.String getUri()
          Get the resource URI of the class.
 boolean hasEncodingScheme()
          Check whether a schema property may have an encoding scheme.
abstract  int hashCode()
          Get a distinct hash code value.
 boolean hasUriEncodingScheme()
          Check whether a schema property may have a URI encoding scheme.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

encoding

protected boolean encoding
Whether the property has encoding schemes that may apply to it.

Since:
Version 0.5 2005-09-14

uriEncoding

protected boolean uriEncoding
Whether the property may have a URI encoding schemes.

Since:
Version 0.6 2005-09-14
Constructor Detail

AbstractSchemaProperty

public AbstractSchemaProperty()
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.

getQualifiedName

public final java.lang.String getQualifiedName()
Get the qualified name of the class, with namespace prefix.

Returns:
The qualified name of the class with a namespace prefix.
Since:
Version 0.2 2005-06-16

getNameVariable

public final java.lang.String getNameVariable()
Get a unique name varible for query handling.

Returns:
A unique name variable for the class.
Since:
Version 0.2 2005-06-16

getBNodeVariable

public final java.lang.String getBNodeVariable()
Get a unique varible name for extended bNode queries.

Returns:
A unique bNode variable name for the class.
Since:
Version 0.4 2005-09-13

getNamespacePrefix

public abstract java.lang.String getNamespacePrefix()
Get the namespace prefix for the class.

Returns:
The namespace prefix for the class.
Since:
Version 0.2 2005-06-16

getParameterName

public final java.lang.String getParameterName()
Get a unique parameter name for HTML form handling.

Returns:
A unique parameter name for the class.
Since:
Version 0.3 2005-06-17

hasEncodingScheme

public final boolean hasEncodingScheme()
Check whether a schema property may have an encoding scheme.

Returns:
true if the property may have an encoding scheme.
Since:
Version 0.4 2005-09-14

hasUriEncodingScheme

public final boolean hasUriEncodingScheme()
Check whether a schema property may have a URI encoding scheme.

Returns:
true if the property may have a URI encoding scheme.
Since:
Version 0.6 2005-09-15

equals

public abstract boolean equals(java.lang.Object other)
Check equivalance of properties.

Overrides:
equals in class java.lang.Object
Parameters:
other - The object to compare with this.
Returns:
true if the other object is equivalent to this.
Since:
Version 0.3 2005-06-30

hashCode

public abstract int hashCode()
Get a distinct hash code value.

Overrides:
hashCode in class java.lang.Object
Returns:
A distinct hash code value.
Since:
Version 0.3 2005-06-30

getLocale

public abstract java.util.Locale getLocale()
Get the locale of the property for case conversions, etc.

Returns:
The locale for the schema property.
Since:
Version 0.7 2005-10-19