All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gr.uom.java.xmi.UMLEnumConstant Maven / Gradle / Ivy

package gr.uom.java.xmi;

import java.util.ArrayList;
import java.util.List;

public class UMLEnumConstant extends UMLAttribute {
	private List arguments;

	public UMLEnumConstant(String name, UMLType type, LocationInfo locationInfo) {
		super(name, type, locationInfo);
		this.arguments = new ArrayList();
	}

	public void addArgument(String argument) {
		this.arguments.add(argument);
	}

	public List getArguments() {
		return arguments;
	}

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getName());
        if(arguments.size() > 0) {
        	sb.append("(");
            for(int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy