org.autosemantix.deltalog
Class DefaultElement

java.lang.Object
  extended byorg.autosemantix.deltalog.DefaultElement
All Implemented Interfaces:
Element
Direct Known Subclasses:
AttributeElement, ClassElement, PackageElement

public class DefaultElement
extends java.lang.Object
implements Element

This class provides a default implementation of the Element interface. It does not represent a specific code construct but can be used for general, non-code related changes.

Version:
Created on Jul 20, 2005
Author:
Shawn Simister

Constructor Summary
DefaultElement()
           
DefaultElement(java.lang.String name)
           
 
Method Summary
 java.lang.String getAnnotation()
          Get the annotation associated with this element.
 void setAnnotation(java.lang.String annotation)
          Set the annotation for this element.
 java.lang.String toString()
          Get the string representation of this element.
 java.lang.String toURI()
          Get the URI for this element.
 java.lang.String toXML()
          Get the XML serialization of this element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultElement

public DefaultElement()

DefaultElement

public DefaultElement(java.lang.String name)
Method Detail

getAnnotation

public java.lang.String getAnnotation()
Description copied from interface: Element
Get the annotation associated with this element.

Specified by:
getAnnotation in interface Element
Returns:
The annotation String.

setAnnotation

public void setAnnotation(java.lang.String annotation)
Description copied from interface: Element
Set the annotation for this element.

Specified by:
setAnnotation in interface Element
Parameters:
annotation - The new annotation.

toString

public java.lang.String toString()
Description copied from interface: Element
Get the string representation of this element.

Specified by:
toString in interface Element

toXML

public java.lang.String toXML()
Description copied from interface: Element
Get the XML serialization of this element.

Specified by:
toXML in interface Element
Returns:
The element serialized to XML.

toURI

public java.lang.String toURI()
Description copied from interface: Element
Get the URI for this element.

Specified by:
toURI in interface Element
Returns:
The element's URI.