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

📄 compoundpredicate.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
/**
 * 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 CompoundPredicate class represents the element "CompoundPredicate" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT CompoundPredicate ((SimplePredicate|CompoundPredicate|SimpleSetPredicate|True|False),(SimplePredicate|CompoundPredicate|SimpleSetPredicate|True|False)+)&gt;<br>
 */
public class CompoundPredicate extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "CompoundPredicate";
	/** Defines a booleanOperator attribute */
	public com.borland.xml.toolkit.Attribute booleanOperator = new com.borland.xml.toolkit.Attribute("booleanOperator", "(or | and | xor | surrogate)", "REQUIRED", "");
	/** Defines a SimplePredicate object */
	protected SimplePredicate _objSimplePredicate;
	/** Defines a CompoundPredicate object */
	protected CompoundPredicate _objCompoundPredicate;
	/** Defines a SimpleSetPredicate object */
	protected SimpleSetPredicate _objSimpleSetPredicate;
	/** Defines a True object */
	protected True _objTrue;
	/** Defines a False object */
	protected False _objFalse;
	/** Defines a list of SimplePredicate objects. */
	protected ArrayList _objSimplePredicate1 = new ArrayList();
	/** Defines a list of CompoundPredicate objects. */
	protected ArrayList _objCompoundPredicate1 = new ArrayList();
	/** Defines a list of SimpleSetPredicate objects. */
	protected ArrayList _objSimpleSetPredicate1 = new ArrayList();
	/** Defines a list of True objects. */
	protected ArrayList _objTrue1 = new ArrayList();
	/** Defines a list of False objects. */
	protected ArrayList _objFalse1 = new ArrayList();

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

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

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

	/**
	 * Gets SimplePredicate object.
	 */
	public SimplePredicate getSimplePredicate()
	{
		return _objSimplePredicate;
	}

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

        obj._setParent(this);
		_objCompoundPredicate = null;
		_objSimpleSetPredicate = null;
		_objTrue = null;
		_objFalse = null;
	}
	/**
	 * Gets CompoundPredicate object.
	 */
	public CompoundPredicate getCompoundPredicate()
	{
		return _objCompoundPredicate;
	}

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

        obj._setParent(this);
		_objSimplePredicate = null;
		_objSimpleSetPredicate = null;
		_objTrue = null;
		_objFalse = null;
	}
	/**
	 * Gets SimpleSetPredicate object.
	 */
	public SimpleSetPredicate getSimpleSetPredicate()
	{
		return _objSimpleSetPredicate;
	}

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

        obj._setParent(this);
		_objSimplePredicate = null;
		_objCompoundPredicate = null;
		_objTrue = null;
		_objFalse = null;
	}
	/**
	 * Gets True object.
	 */
	public True getTrue()
	{
		return _objTrue;
	}

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

        obj._setParent(this);
		_objSimplePredicate = null;
		_objCompoundPredicate = null;
		_objSimpleSetPredicate = null;
		_objFalse = null;
	}
	/**
	 * Gets False object.
	 */
	public False getFalse()
	{
		return _objFalse;
	}

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

        obj._setParent(this);
		_objSimplePredicate = null;
		_objCompoundPredicate = null;
		_objSimpleSetPredicate = null;
		_objTrue = null;
	}
	/**
	 * Returns an array of SimplePredicate objects. The length of the returned
	 * array is zero if the list of SimplePredicate object is empty.
	 */
	public SimplePredicate[] getSimplePredicate1()
	{
		return (SimplePredicate[])_objSimplePredicate1.toArray(new SimplePredicate[0]);
	}

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

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

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

	/**
	 * Returns the number of SimplePredicate objects in the list.
	 */
	public int getSimplePredicateCount1()
	{
		return _objSimplePredicate1.size();
	}

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

	/**
	 * Returns a read-only list of SimplePredicate objects.
	 */
	public List getSimplePredicateList1()
	{
		return Collections.unmodifiableList(_objSimplePredicate1);
	}

	/**
	 * Adds a new SimplePredicate 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 addSimplePredicate1(SimplePredicate obj)
	{
		if( obj==null )
			return false;

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

	/**
	 * Adds a list of new SimplePredicate 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 addSimplePredicate1(Collection coSimplePredicate)
	{
		if( coSimplePredicate==null )
			return false;

		java.util.Iterator it = coSimplePredicate.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 _objSimplePredicate1.addAll(coSimplePredicate);
	}

	/**
	 * Removes an existing SimplePredicate object at the specified index.
	 * @return	The removed object.
	 */
	public SimplePredicate removeSimplePredicate1(int index)
	{
		return (SimplePredicate)_objSimplePredicate1.remove(index);
	}

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

	/**
	 * Clears all SimplePredicate objects from the list.
	 */
	public void clearSimplePredicateList1()
	{
		_objSimplePredicate1.clear();
	}
	/**
	 * Returns an array of CompoundPredicate objects. The length of the returned
	 * array is zero if the list of CompoundPredicate object is empty.
	 */
	public CompoundPredicate[] getCompoundPredicate1()
	{
		return (CompoundPredicate[])_objCompoundPredicate1.toArray(new CompoundPredicate[0]);
	}

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

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

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

	/**
	 * Returns the number of CompoundPredicate objects in the list.
	 */
	public int getCompoundPredicateCount1()
	{
		return _objCompoundPredicate1.size();
	}

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

	/**
	 * Returns a read-only list of CompoundPredicate objects.
	 */
	public List getCompoundPredicateList1()
	{
		return Collections.unmodifiableList(_objCompoundPredicate1);
	}

	/**
	 * Adds a new CompoundPredicate 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 addCompoundPredicate1(CompoundPredicate obj)
	{
		if( obj==null )
			return false;

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

	/**
	 * Adds a list of new CompoundPredicate 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 addCompoundPredicate1(Collection coCompoundPredicate)
	{
		if( coCompoundPredicate==null )
			return false;

		java.util.Iterator it = coCompoundPredicate.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 _objCompoundPredicate1.addAll(coCompoundPredicate);
	}

	/**

⌨️ 快捷键说明

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