org.apache.maven.diagrams.connectors.classes.model
Class MethodModel

java.lang.Object
  extended by org.apache.maven.diagrams.connectors.classes.model.MethodModel

public class MethodModel
extends java.lang.Object

Represents single Method

Author:
Piotr Tabor

Constructor Summary
MethodModel()
           
 
Method Summary
 java.util.EnumSet<ModifierModel> getModifiers()
          Set of (access) modifiers
 java.lang.String getName()
          Method name
 java.util.List<java.lang.String> getParams()
          List of parameter's types
 java.lang.String getPropertyName()
          Return's the "fieldName" part of getter or setter (for example: abcDef for getAbcDef)
 java.lang.String getType()
          Returned data type from method.
 boolean isGetter()
           
 boolean isSetter()
           
 void setModifiers(java.util.EnumSet<ModifierModel> modifiers)
          Set of (access) modifiers
 void setName(java.lang.String name)
          Method name
 void setParams(java.util.List<java.lang.String> params)
          List of parameter's types
 void setType(java.lang.String type)
          Returned data type from method.
 java.lang.String toString()
           
 java.lang.String toUMLString(boolean short_)
          Translates the MethodModel into UML string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodModel

public MethodModel()
Method Detail

getType

public java.lang.String getType()
Returned data type from method.


setType

public void setType(java.lang.String type)
Returned data type from method.


getName

public java.lang.String getName()
Method name


setName

public void setName(java.lang.String name)
Method name


getParams

public java.util.List<java.lang.String> getParams()
List of parameter's types


setParams

public void setParams(java.util.List<java.lang.String> params)
List of parameter's types


getModifiers

public java.util.EnumSet<ModifierModel> getModifiers()
Set of (access) modifiers


setModifiers

public void setModifiers(java.util.EnumSet<ModifierModel> modifiers)
Set of (access) modifiers


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isGetter

public boolean isGetter()
Returns:
if the method is getter

isSetter

public boolean isSetter()
Returns:
if the method is setter

getPropertyName

public java.lang.String getPropertyName()
Return's the "fieldName" part of getter or setter (for example: abcDef for getAbcDef)

Returns:

toUMLString

public java.lang.String toUMLString(boolean short_)
Translates the MethodModel into UML string representation

Parameters:
short_ - - use short (simple / not qualified) class names
Returns:


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.