Package org.apache.tuscany.sca.domain.search

Examples of org.apache.tuscany.sca.domain.search.Result


    @Override
    public boolean equals(Object obj) {

        if (obj instanceof Result) {
            Result artifactResult = (Result)obj;

            if (artifactResult.getValue() == this.value || this.value != null
                && this.value.equals(artifactResult.getValue())) {

                if (artifactResult.getContainer() == this.container || this.container != null
                    && this.container.equals(artifactResult.getContainer())) {

                    Map<String, Result> contents = artifactResult.getContents();

                    if (this.contents == null) {
                        return contents.isEmpty();

                    } else if (this.contents.equals(contents)) {
View Full Code Here


        this.value = value;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("<");
        Result container = getContainer();

        sb.append(getClass().getName()).append(" name='").append(getValue()).append("' container='")
            .append(container != null ? container.getValue() : null).append("'>\n");

        Method[] methods = getClass().getMethods();

        for (Method method : methods) {
            String methodName = method.getName();
View Full Code Here

        return res;

    }

    private Result createResult(String field, String value) {
        Result result = this.resultFactory.createResult(field, value);

        if (result != null) {
            return result;
        }
View Full Code Here

    @Override
    public boolean equals(Object obj) {

        if (obj instanceof Result) {
            Result artifactResult = (Result)obj;

            if (artifactResult.getValue() == this.value || this.value != null
                && this.value.equals(artifactResult.getValue())) {

                if (artifactResult.getContainer() == this.container || this.container != null
                    && this.container.equals(artifactResult.getContainer())) {

                    Map<String, Result> contents = artifactResult.getContents();

                    if (this.contents == null) {
                        return contents.isEmpty();

                    } else if (this.contents.equals(contents)) {
View Full Code Here

        this.value = value;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder("<");
        Result container = getContainer();

        sb.append(getClass().getName()).append(" name='").append(getValue()).append("' container='")
            .append(container != null ? container.getValue() : null).append("'>\n");

        Method[] methods = getClass().getMethods();

        for (Method method : methods) {
            String methodName = method.getName();
View Full Code Here

        return res;

    }

    private Result createResult(String field, String value) {
        Result result = this.resultFactory.createResult(field, value);

        if (result != null) {
            return result;
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.domain.search.Result

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.