⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 derivedfield.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
/**
 * This file is generated by BorlandXML.
 */

package com.prudsys.pdm.Adapters.PmmlVersion20;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

/**
 * The DerivedField class represents the element "DerivedField" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT DerivedField (Extension*,(Constant|FieldRef|NormContinuous|NormDiscrete|Discretize|MapValues|MapValuesNum|Aggregate|Logarithmic|Exponential|Reciprocal|Root|Square|Categorization|Numerization|CreateVirtualAttribute))&gt;<br>
 */
public class DerivedField extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "DerivedField";
	/** Defines a removeSourceAtt attribute */
	public com.borland.xml.toolkit.Attribute removeSourceAtt = new com.borland.xml.toolkit.Attribute("removeSourceAtt", "(0 | 1)", "IMPLIED", "");
	/** Defines a displayName attribute */
	public com.borland.xml.toolkit.Attribute displayName = new com.borland.xml.toolkit.Attribute("displayName", "CDATA", "IMPLIED", "");
	/** Defines a name attribute */
	public com.borland.xml.toolkit.Attribute name = new com.borland.xml.toolkit.Attribute("name", "CDATA", "IMPLIED", "");
	/** Defines a list of Extension objects. */
	protected ArrayList _objExtension = new ArrayList();
	/** Defines a Constant object */
	protected Constant _objConstant;
	/** Defines a FieldRef object */
	protected FieldRef _objFieldRef;
	/** Defines a NormContinuous object */
	protected NormContinuous _objNormContinuous;
	/** Defines a NormDiscrete object */
	protected NormDiscrete _objNormDiscrete;
	/** Defines a Discretize object */
	protected Discretize _objDiscretize;
	/** Defines a MapValues object */
	protected MapValues _objMapValues;
	/** Defines a MapValuesNum object */
	protected MapValuesNum _objMapValuesNum;
	/** Defines a Aggregate object */
	protected Aggregate _objAggregate;
	/** Defines a Logarithmic object */
	protected Logarithmic _objLogarithmic;
	/** Defines a Exponential object */
	protected Exponential _objExponential;
	/** Defines a Reciprocal object */
	protected Reciprocal _objReciprocal;
	/** Defines a Root object */
	protected Root _objRoot;
	/** Defines a Square object */
	protected Square _objSquare;
	/** Defines a Categorization object */
	protected Categorization _objCategorization;
	/** Defines a Numerization object */
	protected Numerization _objNumerization;
	/** Defines a CreateVirtualAttribute object */
	protected CreateVirtualAttribute _objCreateVirtualAttribute;

	/**
	 * Creates an empty DerivedField object
	 */
	public DerivedField()
	{
		super();
	}

	/**
	 * Gets the value of "removeSourceAtt" attribute.
	 */
	public String getRemoveSourceAtt()
	{
		return removeSourceAtt.getValue();
	}

	/**
	 * Replaces the existing attribute value with a new value.
	 * @param value	New value.
	 */
	public void setRemoveSourceAtt(String value_)
	{
		removeSourceAtt.setValue(value_ );
	}

	/**
	 * Gets the value of "displayName" attribute.
	 */
	public String getDisplayName()
	{
		return displayName.getValue();
	}

	/**
	 * Replaces the existing attribute value with a new value.
	 * @param value	New value.
	 */
	public void setDisplayName(String value_)
	{
		displayName.setValue(value_ );
	}

	/**
	 * Gets the value of "name" attribute.
	 */
	public String getName()
	{
		return name.getValue();
	}

	/**
	 * Replaces the existing attribute value with a new value.
	 * @param value	New value.
	 */
	public void setName(String value_)
	{
		name.setValue(value_ );
	}

	/**
	 * Returns an array of Extension objects. The length of the returned
	 * array is zero if the list of Extension object is empty.
	 */
	public Extension[] getExtension()
	{
		return (Extension[])_objExtension.toArray(new Extension[0]);
	}

	/**
	 * Replaces all existing Extension objects with a new array of
	 * Extension objects.
	 * @param objArray	an array of Extension objects.
	 */
	public void setExtension(Extension[] objArray)
	{
		if( objArray == null || objArray.length == 0 )
			this._objExtension.clear();
		else
		{
			this._objExtension = new ArrayList(Arrays.asList(objArray));
			for( int i=0; i<objArray.length; i++ )
			{
				if( objArray[i] != null )
					objArray[i]._setParent(this);
			}
		}
	}

	/**
	 * Gets the Extension object at the specified index.
	 * @param index	index of the returned object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public Extension getExtension(int index)
	{
		return (Extension)_objExtension.get(index);
	}

	/**
	 * Replaces an existing Extension object at the specified index with
	 * a new Extension object.
	 * @param index	index of replaced object.
	 * @throws IndexOutOfBoundsException	if index is out of range.
	 */
	public void setExtension(int index, Extension obj)
	{
		if( obj == null )
			removeExtension(index);
		else
		{
			_objExtension.set(index, obj);
			obj._setParent(this);
		}
	}

	/**
	 * Returns the number of Extension objects in the list.
	 */
	public int getExtensionCount()
	{
		return _objExtension.size();
	}

	/**
	 * Returns <code>true</code> if there is no Extension object in the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean isNoExtension()
	{
		return _objExtension.size() == 0;
	}

	/**
	 * Returns a read-only list of Extension objects.
	 */
	public List getExtensionList()
	{
		return Collections.unmodifiableList(_objExtension);
	}

	/**
	 * Adds a new Extension object at the end of the list.
	 * @return <code>true</code> if the new object is added to the list; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean addExtension(Extension obj)
	{
		if( obj==null )
			return false;

		obj._setParent(this);
		return _objExtension.add(obj);
	}

	/**
	 * Adds a list of new Extension objects at the end of the list.
	 * @return <code>true</code> if the list was changed; otherwise, the method
	 * returns <code>false</code>.
	 */
	public boolean addExtension(Collection coExtension)
	{
		if( coExtension==null )
			return false;

		java.util.Iterator it = coExtension.iterator();
		while( it.hasNext() )
		{
			Object obj = it.next();
			if( obj != null && obj instanceof com.borland.xml.toolkit.XmlObject )
				((com.borland.xml.toolkit.XmlObject)obj)._setParent(this);
		}
		return _objExtension.addAll(coExtension);
	}

	/**
	 * Removes an existing Extension object at the specified index.
	 * @return	The removed object.
	 */
	public Extension removeExtension(int index)
	{
		return (Extension)_objExtension.remove(index);
	}

	/**
	 * Removes the specified Extension object.
	 * @return <code>true</code> if this list contains the object; otherwise,
	 * the method returns <code>false</code>.
	 */
	public boolean removeExtension(Extension obj)
	{
		return _objExtension.remove(obj);
	}

	/**
	 * Clears all Extension objects from the list.
	 */
	public void clearExtensionList()
	{
		_objExtension.clear();
	}
	/**
	 * Gets Constant object.
	 */
	public Constant getConstant()
	{
		return _objConstant;
	}

	/**
	 * Replaces the existing Constant object with a new object.
	 * If you pass in a null value to this method, the Constant object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setConstant(Constant obj)
	{
		this._objConstant = obj;
		if( obj == null )
            return;

        obj._setParent(this);
		_objFieldRef = null;
		_objNormContinuous = null;
		_objNormDiscrete = null;
		_objDiscretize = null;
		_objMapValues = null;
		_objMapValuesNum = null;
		_objAggregate = null;
		_objLogarithmic = null;
		_objExponential = null;
		_objReciprocal = null;
		_objRoot = null;
		_objSquare = null;
		_objCategorization = null;
		_objNumerization = null;
		_objCreateVirtualAttribute = null;
	}
	/**
	 * Gets FieldRef object.
	 */
	public FieldRef getFieldRef()
	{
		return _objFieldRef;
	}

	/**
	 * Replaces the existing FieldRef object with a new object.
	 * If you pass in a null value to this method, the FieldRef object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setFieldRef(FieldRef obj)
	{
		this._objFieldRef = obj;
		if( obj == null )
            return;

        obj._setParent(this);
		_objConstant = null;
		_objNormContinuous = null;
		_objNormDiscrete = null;
		_objDiscretize = null;
		_objMapValues = null;
		_objMapValuesNum = null;
		_objAggregate = null;
		_objLogarithmic = null;
		_objExponential = null;
		_objReciprocal = null;
		_objRoot = null;
		_objSquare = null;
		_objCategorization = null;
		_objNumerization = null;
		_objCreateVirtualAttribute = null;
	}
	/**
	 * Gets NormContinuous object.
	 */
	public NormContinuous getNormContinuous()
	{
		return _objNormContinuous;
	}

	/**
	 * Replaces the existing NormContinuous object with a new object.
	 * If you pass in a null value to this method, the NormContinuous object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setNormContinuous(NormContinuous obj)
	{
		this._objNormContinuous = obj;
		if( obj == null )
            return;

        obj._setParent(this);
		_objConstant = null;
		_objFieldRef = null;
		_objNormDiscrete = null;
		_objDiscretize = null;
		_objMapValues = null;
		_objMapValuesNum = null;
		_objAggregate = null;
		_objLogarithmic = null;
		_objExponential = null;
		_objReciprocal = null;
		_objRoot = null;
		_objSquare = null;
		_objCategorization = null;
		_objNumerization = null;
		_objCreateVirtualAttribute = null;
	}
	/**
	 * Gets NormDiscrete object.
	 */
	public NormDiscrete getNormDiscrete()
	{
		return _objNormDiscrete;
	}

	/**
	 * Replaces the existing NormDiscrete object with a new object.
	 * If you pass in a null value to this method, the NormDiscrete object is
	 * cleared and will not be marshaled.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -