com.simonstl.moe
Interface NamingI

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
CoreComponentI, MutableComponentI
All Known Implementing Classes:
NamespaceName, Name

public interface NamingI
extends java.lang.Cloneable

The NamingI interface defines the bare minimum of functionality needed to work with XML names (compounds of URI, local name, and prefix) with MOE.

version 0.01 is the initial release.

Version:
0.01 1 September 2001
Author:
Simon St.Laurent

Method Summary
 java.lang.Object clone()
          Returns a clean copy of the component and its contents.
 java.lang.String getLocalName()
          Returns the local name for the component
 java.lang.String getNsURI()
          Returns the URI reference value for the namespace.
 java.lang.String getPrefix()
          Returns the prefix used to represent the namespace URI reference for this component.
 java.lang.String getQName()
          Returns the Qualified Name (QName) for the component.
 int hashCode()
          Returns a key which can be used as a unique identifier for this component.
 void setLocalName(java.lang.String newLocalName)
          Accepts a string which will serve as the local name for this component.
 void setNsURI(java.lang.String newNsURI)
          Accepts a URI reference value which is used as the namespace for the component.
 void setPrefix(java.lang.String newPrefix)
          Accepts a string which serves as the prefix for this component.
 void setQName(java.lang.String QName)
          Sets the Qualified Name (QName) for the component.
 

Method Detail

hashCode

public int hashCode()
Returns a key which can be used as a unique identifier for this component.
Overrides:
hashCode in class java.lang.Object

setNsURI

public void setNsURI(java.lang.String newNsURI)
Accepts a URI reference value which is used as the namespace for the component.

getNsURI

public java.lang.String getNsURI()
Returns the URI reference value for the namespace.

setLocalName

public void setLocalName(java.lang.String newLocalName)
Accepts a string which will serve as the local name for this component.

getLocalName

public java.lang.String getLocalName()
Returns the local name for the component

setPrefix

public void setPrefix(java.lang.String newPrefix)
Accepts a string which serves as the prefix for this component.

getPrefix

public java.lang.String getPrefix()
Returns the prefix used to represent the namespace URI reference for this component.

getQName

public java.lang.String getQName()
Returns the Qualified Name (QName) for the component.

setQName

public void setQName(java.lang.String QName)
Sets the Qualified Name (QName) for the component. Overrides current local name and prefix, if any.

clone

public java.lang.Object clone()
Returns a clean copy of the component and its contents.
Overrides:
clone in class java.lang.Object