net.firstpartners.nounit.snippet
Class SnippetClass

java.lang.Object
  |
  +--net.firstpartners.nounit.snippet.AbstractSnippet
        |
        +--net.firstpartners.nounit.snippet.SnippetClass
All Implemented Interfaces:
ISnippet, IXmlConstants, IXmlJdomSource, IXmlSource

public class SnippetClass
extends AbstractSnippet
implements IXmlSource, IXmlJdomSource, IXmlConstants

Holds Information about Java Classes


Fields inherited from class net.firstpartners.nounit.snippet.AbstractSnippet
innerAccess, innerName
 
Fields inherited from interface net.firstpartners.nounit.snippet.xml.IXmlConstants
ATTRIBUTE_ACCESS, ATTRIBUTE_CLASS, ATTRIBUTE_METHOD, ATTRIBUTE_NAME, ATTRIBUTE_PACKAGE_LOCATION, ELEMENT_CALLS, ELEMENT_CLASS, ELEMENT_CLASS_EXTENDS, ELEMENT_METHOD, ELEMENT_PACKAGE, ELEMENT_PARAM, ELEMENT_PROJECT
 
Constructor Summary
SnippetClass(java.lang.String name, java.lang.String accessModifier, java.lang.String superClass, Snippets methods)
          Creates new SnippetPackage
 
Method Summary
 org.jdom.Element getNodes()
          Get an XML Representation of this Class (as Jdom nodes)
 java.lang.String toString()
          over-ride Object.toString() to provide more information about this class
 java.lang.String toXml()
          Get an XML Representation of this Class (as String of XML)
 
Methods inherited from class net.firstpartners.nounit.snippet.AbstractSnippet
toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnippetClass

public SnippetClass(java.lang.String name,
                    java.lang.String accessModifier,
                    java.lang.String superClass,
                    Snippets methods)
Creates new SnippetPackage
Parameters:
name - of this snippet
accessModifier -  
superClass -  
methods - (Snippets Collection)
Method Detail

toString

public java.lang.String toString()
over-ride Object.toString() to provide more information about this class
Overrides:
toString in class AbstractSnippet
Returns:
stringDescription of Class

toXml

public java.lang.String toXml()
Get an XML Representation of this Class (as String of XML)
Specified by:
toXml in interface IXmlSource
Returns:
String with the XML description

getNodes

public org.jdom.Element getNodes()
Get an XML Representation of this Class (as Jdom nodes)
Specified by:
getNodes in interface IXmlJdomSource
Returns:
methodRoot with the XML description