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

it.uniroma2.art.coda.pearl.model.propPathStruct.PathNegatedPropertySetElemPropPath Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package it.uniroma2.art.coda.pearl.model.propPathStruct;

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

public class PathNegatedPropertySetElemPropPath implements GenericElemPropPath{

    private List pathOneInPropertySetElemPropPathList = new ArrayList<>();

    public PathNegatedPropertySetElemPropPath() {
    }

    public void addPathOneInPropertySetElemPropPath(PathOneInPropertySetElemPropPath pathOneInPropertySetElemPropPath) {
        this.pathOneInPropertySetElemPropPathList.add(pathOneInPropertySetElemPropPath);
    }

    public List getPathOneInPropertySetElemPropPathList() {
        return pathOneInPropertySetElemPropPathList;
    }

    @Override
    public String getValueAsString() {
        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.append(" (");
        boolean first = true;
        for (PathOneInPropertySetElemPropPath pathOneInPropertySetElemPropPath : pathOneInPropertySetElemPropPathList) {
            if (!first) {
                stringBuilder.append(" | ");
            }
            first = false;
            stringBuilder.append(pathOneInPropertySetElemPropPath.getValueAsString());
        }
        stringBuilder.append(") ");

        return stringBuilder.toString();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy