net.firstpartners.nounit.snippet
Class SnippetMethod

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

public class SnippetMethod
extends AbstractSnippet
implements IXmlSource, IXmlJdomSource, IXmlConstants

Holds Information about Java Methods


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
SnippetMethod(java.lang.String name, java.lang.String accessModifier, java.util.HashMap parameters, Snippets methodsCalled)
          Creates new SnippetMethod
 
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

SnippetMethod

public SnippetMethod(java.lang.String name,
                     java.lang.String accessModifier,
                     java.util.HashMap parameters,
                     Snippets methodsCalled)
Creates new SnippetMethod
Parameters:
name - of this snippet
accessModifier -  
parameters - , HashMap with value pairs 1,Integer 2,Integer 3,String or whatever the method signature is
methodsCalled - (as Snippets) by this method
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