VdexReload 1.1.3 API

uk.ac.reload.moonunit.schema
Class ReloadSchemaNode

java.lang.Object
  extended byuk.ac.reload.moonunit.schema.ReloadSchemaNode
Direct Known Subclasses:
ReloadSchemaAttribute, ReloadSchemaElement

public abstract class ReloadSchemaNode
extends java.lang.Object

An abstract node that represents either an Element or an Attribute of the Schema. These are hierarchical and contained by a ReloadSchema class.


Field Summary
protected  java.lang.Object _parent
          The parent of this node.
 
Constructor Summary
ReloadSchemaNode()
          Default Constructor
 
Method Summary
abstract  java.lang.String getBaseTypeName()
          Get the base type name of this node - implementations should provide this
abstract  java.lang.String getDefaultValue()
          Get the default value of this node.
abstract  DomPath getDomPath()
          Get the path to this node - implementations should provide this
abstract  java.lang.String getFacetValue(java.lang.String facetName)
          Get a Facet Value
abstract  java.lang.String getName()
          Get the name of this node - implementations should provide this
abstract  org.jdom.Namespace getNamespace()
          Get the Namespace of this Attribute
abstract  java.lang.String getNamespacePrefix()
          Get the Prefix of this Node
 ReloadSchemaNode getParent()
          Get the parent node
 ReloadSchema getReloadSchema()
          Get the owning ReloadSchema that this node is a member of
abstract  java.lang.String getTypeName()
          Get the type name of this node - implementations should provide this
 boolean isExternalNamespace()
          Determine whether this node belongs to another Namespace
 ReloadSchemaNode setParent(ReloadSchemaElement parent)
          Set the parent of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parent

protected java.lang.Object _parent
The parent of this node. Either a ReloadSchemaElement or the topmost ReloadSchema

Constructor Detail

ReloadSchemaNode

public ReloadSchemaNode()
Default Constructor

Method Detail

setParent

public ReloadSchemaNode setParent(ReloadSchemaElement parent)
Set the parent of this node.

Parameters:
parent - the parent node
Returns:
this node

getParent

public ReloadSchemaNode getParent()
Get the parent node

Returns:
the parent node or null if there isn't one or if the parent is the topmost ReloadSchema

getReloadSchema

public ReloadSchema getReloadSchema()
Get the owning ReloadSchema that this node is a member of

Returns:
the owning ReloadSchema that this node is a member of or null if there isn't one

isExternalNamespace

public boolean isExternalNamespace()
Determine whether this node belongs to another Namespace

Returns:
true if this node belongs to another Namespace, false otherwise

getName

public abstract java.lang.String getName()
Get the name of this node - implementations should provide this

Returns:
the name of this node

getDomPath

public abstract DomPath getDomPath()
Get the path to this node - implementations should provide this

Returns:
the path to this node

getTypeName

public abstract java.lang.String getTypeName()
Get the type name of this node - implementations should provide this

Returns:
the type name of this node

getBaseTypeName

public abstract java.lang.String getBaseTypeName()
Get the base type name of this node - implementations should provide this

Returns:
the base type name of this node

getDefaultValue

public abstract java.lang.String getDefaultValue()
Get the default value of this node.

Returns:
the default value of this node or null if no default was specified

getFacetValue

public abstract java.lang.String getFacetValue(java.lang.String facetName)
Get a Facet Value

Parameters:
facetName - the name of the facet
Returns:
a Facet Value or null

getNamespacePrefix

public abstract java.lang.String getNamespacePrefix()
Get the Prefix of this Node

Returns:
the Prefix of this Node, or "" if no prefix

getNamespace

public abstract org.jdom.Namespace getNamespace()
Get the Namespace of this Attribute

Returns:
the Namespace of this Attribute

VdexReload 1.1.3 API