org.hpccsystems.ws.client.wrappers.gen.wspackageprocess.ValidateResultWrapper Maven / Gradle / Ivy
package org.hpccsystems.ws.client.wrappers.gen.wspackageprocess;
/*******************************************************************************
* HPCC SYSTEMS software Copyright (C) 2019 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.v1_04.EspStringArray;
/**
* Generated Axis2 ADB stub class wrapper
* Class name: ValidateResultWrapper
* Wraps class: org.hpccsystems.ws.client.gen.axis2.wspackageprocess.v1_04.ValidateResult
* Output package : org.hpccsystems.ws.client.wrappers.gen.wspackageprocess
* TimeStamp: 2020-09-23T03:53:35.734Z
*/
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.v1_04.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.v1_04.ValidateResult raw )
{
if (raw == null)
return;
this.local_target = raw.getTarget();
this.local_pMID = raw.getPMID();
if (raw.getWarnings() != 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)
{
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.v1_04.ValidateResult getRaw()
{
org.hpccsystems.ws.client.gen.axis2.wspackageprocess.v1_04.ValidateResult raw = new org.hpccsystems.ws.client.gen.axis2.wspackageprocess.v1_04.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);
}
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;
}
}