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

📄 sequencemodel.java

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

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

	/**
	 * Returns the number of SetPredicate objects in the list.
	 */
	public int getSetPredicateCount()
	{
		return _objSetPredicate.size();
	}

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

	/**
	 * Returns a read-only list of SetPredicate objects.
	 */
	public List getSetPredicateList()
	{
		return Collections.unmodifiableList(_objSetPredicate);
	}

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

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

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

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

	/**
	 * Removes an existing SetPredicate object at the specified index.
	 * @return	The removed object.
	 */
	public SetPredicate removeSetPredicate(int index)
	{
		return (SetPredicate)_objSetPredicate.remove(index);
	}

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

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

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

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

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

	/**
	 * Returns the number of Sequence objects in the list.
	 */
	public int getSequenceCount()
	{
		return _objSequence.size();
	}

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

	/**
	 * Returns a read-only list of Sequence objects.
	 */
	public List getSequenceList()
	{
		return Collections.unmodifiableList(_objSequence);
	}

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

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

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

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

	/**
	 * Removes an existing Sequence object at the specified index.
	 * @return	The removed object.
	 */
	public Sequence removeSequence(int index)
	{
		return (Sequence)_objSequence.remove(index);
	}

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

	/**
	 * Clears all Sequence objects from the list.
	 */
	public void clearSequenceList()
	{
		_objSequence.clear();
	}
	/**
	 * Returns an array of SequenceRule objects. The length of the returned
	 * array is zero if the list of SequenceRule object is empty.
	 */
	public SequenceRule[] getSequenceRule()
	{
		return (SequenceRule[])_objSequenceRule.toArray(new SequenceRule[0]);
	}

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

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

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

	/**
	 * Returns the number of SequenceRule objects in the list.
	 */
	public int getSequenceRuleCount()
	{
		return _objSequenceRule.size();
	}

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

	/**
	 * Returns a read-only list of SequenceRule objects.
	 */
	public List getSequenceRuleList()
	{
		return Collections.unmodifiableList(_objSequenceRule);
	}

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

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

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

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

	/**
	 * Removes an existing SequenceRule object at the specified index.
	 * @return	The removed object.
	 */
	public SequenceRule removeSequenceRule(int index)
	{
		return (SequenceRule)_objSequenceRule.remove(index);
	}

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

	/**
	 * Clears all SequenceRule objects from the list.
	 */
	public void clearSequenceRuleList()
	{
		_objSequenceRule.clear();
	}
	/**
	 * Returns an array of Extension objects. The length of the returned
	 * array is zero if the list of Extension object is empty.
	 */
	public Extension[] getExtension1()
	{
		return (Extension[])_objExtension1.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 setExtension1(Extension[] objArray)
	{
		if( objArray == null || objArray.length == 0 )
			this._objExtension1.clear();
		else
		{
			this._objExtension1 = 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 getExtension1(int index)
	{
		return (Extension)_objExtension1.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 setExtension1(int index, Extension obj)
	{
		if( obj == null )
			removeExtension1(index);
		else
		{
			_objExtension1.set(index, obj);
			obj._setParent(this);
		}
	}

	/**
	 * Returns the number of Extension objects in the list.
	 */
	public int getExtensionCount1()
	{

⌨️ 快捷键说明

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