mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-14 16:45:05 +01:00
update JavaDoc
This commit is contained in:
parent
23c356a4c8
commit
a2d90ecc26
2 changed files with 22 additions and 2 deletions
|
|
@ -41,6 +41,11 @@ public class UMLField {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a Setter Method for this field
|
||||
*
|
||||
* @return The Setter Method as a String
|
||||
*/
|
||||
public String setter() {
|
||||
String nameCapital = name.toUpperCase();
|
||||
String nameCC = "set" + nameCapital.charAt(0) + name.substring(1);
|
||||
|
|
@ -51,6 +56,11 @@ public class UMLField {
|
|||
return setter.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a Getter Method for this field
|
||||
*
|
||||
* @return The Getter Method as a String
|
||||
*/
|
||||
public String getter() {
|
||||
|
||||
String nameCapital = name.toUpperCase();
|
||||
|
|
|
|||
|
|
@ -88,11 +88,21 @@ public class UMLMethod {
|
|||
return returnString.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an argument to the method
|
||||
*
|
||||
* @param name The name of the variable
|
||||
* @param dataType The type
|
||||
*/
|
||||
public void addArg(String name, String dataType) {
|
||||
argsNames.add(name);
|
||||
argsTypes.add(dataType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a line to the method body
|
||||
* @param line The line (not containing any linebreaks)
|
||||
*/
|
||||
public void addBodyLine(String line) {
|
||||
if (methodBody.contains("\n")) {
|
||||
methodBody += "\n " + line;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue