net.firstpartners.nounit.snippet
Class SnippetProject

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

public class SnippetProject
extends AbstractSnippet
implements IXmlSource, IXmlJdomSource, IXmlConstants

Holds Information about a Java Project (i.e. Multiple Packages)


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
SnippetProject(Snippets packages)
          Creates new SnippetProject
 
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

SnippetProject

public SnippetProject(Snippets packages)
Creates new SnippetProject
Parameters:
packages - , Snippets (Collection) of Classes
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:
projectRoot with the XML description