net.firstpartners.nounit.snippet
Class SnippetPackage

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

public class SnippetPackage
extends AbstractSnippet
implements IXmlSource, IXmlJdomSource, IXmlConstants

Holds Information about a Java Package


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
SnippetPackage(java.lang.String location, Snippets classes)
          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

SnippetPackage

public SnippetPackage(java.lang.String location,
                      Snippets classes)
Creates new SnippetPackage
Parameters:
location - of this snippet
classes - (as Snippets)
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