org.hpccsystems.ws.client.wrappers.wsdfu.DFUDataColumnWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wsclient Show documentation
Show all versions of wsclient Show documentation
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.
package org.hpccsystems.ws.client.wrappers.wsdfu;
import java.util.ArrayList;
import java.util.List;
import org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFUDataColumn;
import org.hpccsystems.ws.client.platform.DFUDataColumnAnnotation;
// This class wraps the generated soap ECL Workunit, providing comparable and to-string methods for end-users.
public class DFUDataColumnWrapper// extends DFUDataColumnImpl
{
private static final long serialVersionUID = 1L;
private List childColumns = null;
private String originalEcl = null;
private String xpath = null;
private String xmlDefaultVal = null;
private String maxcount = null;
private String maxlength = null;
private boolean isblob = false;
private List annotations = new ArrayList();
private Integer columnID;
private String columnLabel;
private String columnType;
private String columnValue;
private Integer columnSize;
private Integer maxSize;
private String columnEclType;
private Integer columnRawSize;
private Boolean isNaturalColumn;
private Boolean isKeyedColumn;
private DFUDataColumn[] dataColumns;
/**
* Create a Data Column Info object from a axis-generated soap class DFUDataColumn.
*
* @param base
* the base
*/
public DFUDataColumnWrapper(DFUDataColumn base)
{
copy(base);
}
/**
* Instantiates a new DFU data column wrapper.
*/
public DFUDataColumnWrapper()
{
}
/**
* Instantiates a new DFU data column wrapper.
*
* @param dfuDataColumnWrapper
* the dfu data column wrapper
*/
public DFUDataColumnWrapper(DFUDataColumnWrapper dfuDataColumnWrapper)
{
copy(dfuDataColumnWrapper);
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("\tColumnLabel:").append(this.getColumnLabel()).append("\n");
sb.append("\tColumnEclType:").append(this.getColumnEclType()).append("\n");
sb.append("\tColumnID:").append(this.getColumnID()).append("\n");
sb.append("\tColumnRawSize:").append(this.getColumnRawSize()).append("\n");
sb.append("\tColumnSize:").append(this.getColumnSize()).append("\n");
sb.append("\tColumnType:").append(this.getColumnType()).append("\n");
sb.append("\tColumnValue:").append(this.getColumnValue()).append("\n");
sb.append("\tIsBlob:").append(this.isBlob()).append("\n");
sb.append("\tIsKeyedColumn:").append(this.getIsKeyedColumn()).append("\n");
sb.append("\tIsNaturalColumn:").append(this.getIsNaturalColumn()).append("\n");
sb.append("\tMaxSize:").append(this.getMaxSize()).append("\n");
sb.append("\tMaxLength:").append(this.getMaxlength()).append("\n");
sb.append("\tMaxcount:").append(this.getMaxcount()).append("\n");
sb.append("\txpath:").append(this.getXpath()).append("\n");
sb.append("\txmldefault:").append(this.getXmlDefaultVal()).append("\n");
if (this.getAnnotations() != null && this.getAnnotations().size()>0) {
sb.append("annotations:");
for (DFUDataColumnAnnotation a:this.getAnnotations()) {
sb.append(a.toString());
}
}
for (DFUDataColumnWrapper col : this.getChildColumns())
{
sb.append("\n\t").append(col.getColumnLabel()).append(":").append(col.toString());
}
return sb.toString();
}
/**
* Copy a soap DFU Data Column object into the wrapper.
*
* @param dfuDataColumnWrapper
* the dfu data column wrapper
*/
protected void copy(DFUDataColumnWrapper dfuDataColumnWrapper)
{
if (dfuDataColumnWrapper == null)
return;
setAnnotations(dfuDataColumnWrapper.getAnnotations());
setChildColumns(dfuDataColumnWrapper.getChildColumns());
setColumnEclType(dfuDataColumnWrapper.getColumnEclType());
setColumnID(dfuDataColumnWrapper.getColumnID());
setColumnLabel(dfuDataColumnWrapper.getColumnLabel());
setColumnRawSize(dfuDataColumnWrapper.getColumnRawSize());
setColumnSize(dfuDataColumnWrapper.getColumnSize());
setColumnType(dfuDataColumnWrapper.getColumnType());
setColumnValue(dfuDataColumnWrapper.getColumnValue());
setColumnSize(dfuDataColumnWrapper.getColumnSize());
setIsKeyedColumn(dfuDataColumnWrapper.getIsKeyedColumn());
setIsNaturalColumn(dfuDataColumnWrapper.getIsNaturalColumn());
setMaxcount(dfuDataColumnWrapper.getMaxcount());
setMaxlength(dfuDataColumnWrapper.getMaxlength());
setMaxSize(dfuDataColumnWrapper.getMaxSize());
setOriginalEcl(dfuDataColumnWrapper.getOriginalEcl());
setXmlDefaultVal(dfuDataColumnWrapper.getXmlDefaultVal());
setXpath(dfuDataColumnWrapper.getXpath());
setIsblob(dfuDataColumnWrapper.isBlob());
}
/**
* Copy a soap DFU Data Column object into the wrapper.
*
* @param base
* the base
*/
protected void copy(DFUDataColumn base)
{
if (base == null)
{
return;
}
this.setColumnEclType(base.getColumnEclType());
this.setColumnID(base.getColumnID());
this.setColumnLabel(base.getColumnLabel());
this.setColumnRawSize(base.getColumnRawSize());
this.setColumnSize(base.getColumnSize());
this.setColumnType(base.getColumnType());
this.setColumnValue(base.getColumnValue());
this.setIsKeyedColumn(base.getIsKeyedColumn());
this.setIsNaturalColumn(base.getIsNaturalColumn());
this.setMaxSize(base.getMaxSize());
if (base.getDataColumns() != null)
{
this.childColumns = new ArrayList();
DFUDataColumn[] dfuDataColumns = base.getDataColumns().getDFUDataColumn();
for (int i=0; i < dfuDataColumns.length; i++)
{
this.getChildColumns().add(new DFUDataColumnWrapper(dfuDataColumns[i]));
}
}
}
/**
* Gets the child columns.
*
* @return list of child columns if this column is a dataset type column
*/
public List getChildColumns()
{
if (childColumns == null)
{
childColumns = new ArrayList();
}
return childColumns;
}
/**
* Sets the child columns.
*
* @param childColumns
* - List of DFUDataColumnInfo objects
*/
public void setChildColumns(List childColumns)
{
this.childColumns = childColumns;
}
/**
* Sets the columns.
*
* @param childColumns
* - Array of DFUDataColumn objects
*/
public void setColumns(DFUDataColumn[] childColumns)
{
if (childColumns == null)
{
this.childColumns = null;
return;
}
this.childColumns = new ArrayList();
for (int i = 0; i < childColumns.length; i++)
{
this.childColumns.add(new DFUDataColumnWrapper(childColumns[i]));
}
}
/**
* Gets the original ecl.
*
* @return the original ecl
*/
public String getOriginalEcl()
{
return originalEcl;
}
/**
* Sets the original ecl.
*
* @param originalEcl
* the new original ecl
*/
public void setOriginalEcl(String originalEcl)
{
this.originalEcl = originalEcl;
}
/**
* Gets the xpath.
*
* @return the xpath
*/
public String getXpath()
{
return xpath;
}
/**
* Sets the xpath.
*
* @param xpath
* the new xpath
*/
public void setXpath(String xpath)
{
this.xpath = xpath;
}
/**
* Gets the xml default val.
*
* @return the xml default val
*/
public String getXmlDefaultVal()
{
return xmlDefaultVal;
}
/**
* Sets the xml default val.
*
* @param xmlDefaultVal
* the new xml default val
*/
public void setXmlDefaultVal(String xmlDefaultVal)
{
this.xmlDefaultVal = xmlDefaultVal;
}
/**
* Gets the maxcount.
*
* @return the maxcount
*/
public String getMaxcount()
{
return maxcount;
}
/**
* Sets the maxcount.
*
* @param maxcount
* the new maxcount
*/
public void setMaxcount(String maxcount)
{
this.maxcount = maxcount;
}
/**
* Gets the maxlength.
*
* @return the maxlength
*/
public String getMaxlength()
{
return maxlength;
}
/**
* Sets the maxlength.
*
* @param maxlength
* the new maxlength
*/
public void setMaxlength(String maxlength)
{
this.maxlength = maxlength;
}
/**
* Gets the annotations.
*
* @return the annotations
*/
public List getAnnotations()
{
return annotations;
}
/**
* Sets the annotations.
*
* @param annotations
* the new annotations
*/
public void setAnnotations(final List annotations)
{
this.annotations = annotations;
}
/**
* Checks if is blob.
*
* @return true, if is blob
*/
public boolean isBlob()
{
return isblob;
}
/**
* Sets the blob.
*
* @param blob
* the new blob
*/
public void setBlob(boolean blob)
{
this.isblob = blob;
}
/**
* Checks if is isblob.
*
* @return the isblob
*/
public boolean isIsblob()
{
return isblob;
}
/**
* Sets the isblob.
*
* @param isblob
* the isblob to set
*/
public void setIsblob(boolean isblob)
{
this.isblob = isblob;
}
/**
* Gets the column ID.
*
* @return the columnID
*/
public Integer getColumnID()
{
return columnID;
}
/**
* Sets the column ID.
*
* @param columnID
* the columnID to set
*/
public void setColumnID(Integer columnID)
{
this.columnID = columnID;
}
/**
* Gets the column label.
*
* @return the columnLabel
*/
public String getColumnLabel()
{
return columnLabel;
}
/**
* Sets the column label.
*
* @param columnLabel
* the columnLabel to set
*/
public void setColumnLabel(String columnLabel)
{
this.columnLabel = columnLabel;
}
/**
* Gets the column type.
*
* @return the columnType
*/
public String getColumnType()
{
return columnType;
}
/**
* Sets the column type.
*
* @param columnType
* the columnType to set
*/
public void setColumnType(String columnType)
{
this.columnType = columnType;
}
/**
* Gets the column value.
*
* @return the columnValue
*/
public String getColumnValue()
{
return columnValue;
}
/**
* Sets the column value.
*
* @param columnValue
* the columnValue to set
*/
public void setColumnValue(String columnValue)
{
this.columnValue = columnValue;
}
/**
* Gets the column size.
*
* @return the columnSize
*/
public Integer getColumnSize()
{
return columnSize;
}
/**
* Sets the column size.
*
* @param columnSize
* the columnSize to set
*/
public void setColumnSize(Integer columnSize)
{
this.columnSize = columnSize;
}
/**
* Gets the max size.
*
* @return the maxSize
*/
public Integer getMaxSize()
{
return maxSize;
}
/**
* Sets the max size.
*
* @param maxSize
* the maxSize to set
*/
public void setMaxSize(Integer maxSize)
{
this.maxSize = maxSize;
}
/**
* Gets the column ecl type.
*
* @return the columnEclType
*/
public String getColumnEclType()
{
return columnEclType;
}
/**
* Sets the column ecl type.
*
* @param columnEclType
* the columnEclType to set
*/
public void setColumnEclType(String columnEclType)
{
this.columnEclType = columnEclType;
}
/**
* Gets the column raw size.
*
* @return the columnRawSize
*/
public Integer getColumnRawSize()
{
return columnRawSize;
}
/**
* Sets the column raw size.
*
* @param columnRawSize
* the columnRawSize to set
*/
public void setColumnRawSize(Integer columnRawSize)
{
this.columnRawSize = columnRawSize;
}
/**
* Gets the checks if is natural column.
*
* @return the isNaturalColumn
*/
public Boolean getIsNaturalColumn()
{
return isNaturalColumn;
}
/**
* Sets the checks if is natural column.
*
* @param isNaturalColumn
* the isNaturalColumn to set
*/
public void setIsNaturalColumn(Boolean isNaturalColumn)
{
this.isNaturalColumn = isNaturalColumn;
}
/**
* Gets the checks if is keyed column.
*
* @return the isKeyedColumn
*/
public Boolean getIsKeyedColumn()
{
return isKeyedColumn;
}
/**
* Sets the checks if is keyed column.
*
* @param isKeyedColumn
* the isKeyedColumn to set
*/
public void setIsKeyedColumn(Boolean isKeyedColumn)
{
this.isKeyedColumn = isKeyedColumn;
}
/**
* Gets the data columns.
*
* @return the dataColumns
*/
public DFUDataColumn[] getDataColumns()
{
return dataColumns;
}
/**
* Sets the data columns.
*
* @param dataColumns
* the dataColumns to set
*/
public void setDataColumns(DFUDataColumn[] dataColumns)
{
this.dataColumns = dataColumns;
}
}