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

📄 sequencemodel.java

📁 为了下东西 随便发了个 datamining 的源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
	}

	/**
	 * 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 MiningSchema object.
	 */
	public MiningSchema getMiningSchema()
	{
		return _objMiningSchema;
	}

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

        obj._setParent(this);
	}
	/**
	 * Returns an array of Item objects. The length of the returned
	 * array is zero if the list of Item object is empty.
	 */
	public Item[] getItem()
	{
		return (Item[])_objItem.toArray(new Item[0]);
	}

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

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

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

	/**
	 * Returns the number of Item objects in the list.
	 */
	public int getItemCount()
	{
		return _objItem.size();
	}

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

	/**
	 * Returns a read-only list of Item objects.
	 */
	public List getItemList()
	{
		return Collections.unmodifiableList(_objItem);
	}

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

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

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

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

	/**
	 * Removes an existing Item object at the specified index.
	 * @return	The removed object.
	 */
	public Item removeItem(int index)
	{
		return (Item)_objItem.remove(index);
	}

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

	/**
	 * Clears all Item objects from the list.
	 */
	public void clearItemList()
	{
		_objItem.clear();
	}
	/**
	 * Returns an array of Itemset objects. The length of the returned
	 * array is zero if the list of Itemset object is empty.
	 */
	public Itemset[] getItemset()
	{
		return (Itemset[])_objItemset.toArray(new Itemset[0]);
	}

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

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

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

	/**
	 * Returns the number of Itemset objects in the list.
	 */
	public int getItemsetCount()
	{
		return _objItemset.size();
	}

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

	/**
	 * Returns a read-only list of Itemset objects.
	 */
	public List getItemsetList()
	{
		return Collections.unmodifiableList(_objItemset);
	}

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

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

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

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

	/**
	 * Removes an existing Itemset object at the specified index.
	 * @return	The removed object.
	 */
	public Itemset removeItemset(int index)
	{
		return (Itemset)_objItemset.remove(index);
	}

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

	/**
	 * Clears all Itemset objects from the list.
	 */
	public void clearItemsetList()
	{
		_objItemset.clear();
	}
	/**
	 * Returns an array of SetPredicate objects. The length of the returned
	 * array is zero if the list of SetPredicate object is empty.
	 */
	public SetPredicate[] getSetPredicate()
	{
		return (SetPredicate[])_objSetPredicate.toArray(new SetPredicate[0]);
	}

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

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

⌨️ 快捷键说明

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