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

org.hpccsystems.ws.client.wrappers.gen.wspackageprocess.ValidateResultWrapper Maven / Gradle / Ivy

Go to download

This project allows a user to interact with ESP services in a controlled manner. The API calls available under org.hpccsystems.ws.client.platform allow for a user to target ESP's across multiple environments running a range of hpccsystems-platform versions. There is no guarantee that if a user utilizes org.hpccsystems.ws.client.gen generated stub code from wsdl, that the calls will be backwards compatible with older hpccsystems-platform versions.

There is a newer version: 9.6.10-1
Show newest version
package org.hpccsystems.ws.client.wrappers.gen.wspackageprocess;

/*******************************************************************************
 * HPCC SYSTEMS software Copyright (C) 2021 HPCC Systems.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
import java.util.List;
import java.util.ArrayList;
import org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.EspStringArray;

/**
 * Generated Axis2 ADB stub class wrapper
 * Class name: ValidateResultWrapper
 * Wraps class: org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult
 * Output package : org.hpccsystems.ws.client.wrappers.gen.wspackageprocess
 */
public class ValidateResultWrapper
{
    protected String local_target;
    protected String local_pMID;
    protected List local_warnings = null;
    protected List local_errors = null;
    protected ValidatePackageInfoWrapper local_packages;
    protected ValidatePackageQueriesWrapper local_queries;
    protected ValidatePackageFilesWrapper local_files;

    public ValidateResultWrapper() {}

    public ValidateResultWrapper( org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult validateresult)
    {
        copy( validateresult );
    }
    public ValidateResultWrapper( String _target, String _pMID, List _warnings, List _errors, ValidatePackageInfoWrapper _packages, ValidatePackageQueriesWrapper _queries, ValidatePackageFilesWrapper _files )
    {
        this.local_target = _target;
        this.local_pMID = _pMID;
        this.local_warnings = _warnings;
        this.local_errors = _errors;
        this.local_packages = _packages;
        this.local_queries = _queries;
        this.local_files = _files;

    }

    private void copy( org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult raw )
    {
        if (raw == null)
            return;

        this.local_target = raw.getTarget();
        this.local_pMID = raw.getPMID();
        if (raw.getWarnings() != null && raw.getWarnings().getItem() != null)
        {
            this.local_warnings = new ArrayList();
            for ( int i = 0; i < raw.getWarnings().getItem().length; i++)
            {
                this.local_warnings.add(new String(raw.getWarnings().getItem()[i]));
            }
        }        if (raw.getErrors() != null && raw.getErrors().getItem() != null)
        {
            this.local_errors = new ArrayList();
            for ( int i = 0; i < raw.getErrors().getItem().length; i++)
            {
                this.local_errors.add(new String(raw.getErrors().getItem()[i]));
            }
        }        if (raw.getPackages() != null)
            this.local_packages = new ValidatePackageInfoWrapper( raw.getPackages());
        if (raw.getQueries() != null)
            this.local_queries = new ValidatePackageQueriesWrapper( raw.getQueries());
        if (raw.getFiles() != null)
            this.local_files = new ValidatePackageFilesWrapper( raw.getFiles());

    }

    @Override
    public String toString()
    {
        return "ValidateResultWrapper [" + "target = " + local_target + ", " + "pMID = " + local_pMID + ", " + "warnings = " + local_warnings + ", " + "errors = " + local_errors + ", " + "packages = " + local_packages + ", " + "queries = " + local_queries + ", " + "files = " + local_files + "]";
    }
    public org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult getRaw()
    {
        org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult raw = new org.hpccsystems.ws.client.gen.axis2.wspackageprocess.latest.ValidateResult();
        raw.setTarget( local_target);
        raw.setPMID( local_pMID);
        if (this.local_warnings!= null)
        {
            EspStringArray arr = new EspStringArray();
            for ( int i = 0; i < this.local_warnings.size(); i++)
            {
                arr.addItem(this.local_warnings.get(i));
            }
            raw.setWarnings(arr);
        }
        if (this.local_errors!= null)
        {
            EspStringArray arr = new EspStringArray();
            for ( int i = 0; i < this.local_errors.size(); i++)
            {
                arr.addItem(this.local_errors.get(i));
            }
            raw.setErrors(arr);
        }
        if (local_packages != null)
            raw.setPackages( local_packages.getRaw());
        if (local_queries != null)
            raw.setQueries( local_queries.getRaw());
        if (local_files != null)
            raw.setFiles( local_files.getRaw());
        return raw;
    }


    public void setTarget( String _target )
    {
        this.local_target = _target;
    }
    public String getTarget( )
    {
        return this.local_target;
    }
    public void setPMID( String _pMID )
    {
        this.local_pMID = _pMID;
    }
    public String getPMID( )
    {
        return this.local_pMID;
    }
    public void setWarnings( List _warnings )
    {
        this.local_warnings = _warnings;
    }
    public List getWarnings( )
    {
        return this.local_warnings;
    }
    public void setErrors( List _errors )
    {
        this.local_errors = _errors;
    }
    public List getErrors( )
    {
        return this.local_errors;
    }
    public void setPackages( ValidatePackageInfoWrapper _packages )
    {
        this.local_packages = _packages;
    }
    public ValidatePackageInfoWrapper getPackages( )
    {
        return this.local_packages;
    }
    public void setQueries( ValidatePackageQueriesWrapper _queries )
    {
        this.local_queries = _queries;
    }
    public ValidatePackageQueriesWrapper getQueries( )
    {
        return this.local_queries;
    }
    public void setFiles( ValidatePackageFilesWrapper _files )
    {
        this.local_files = _files;
    }
    public ValidatePackageFilesWrapper getFiles( )
    {
        return this.local_files;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy