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

📄 contstats.java

📁 一个数据挖掘软件ALPHAMINERR的整个过程的JAVA版源代码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
	public boolean removeInterval(Interval obj)
	{
		return _objInterval.remove(obj);
	}

	/**
	 * Clears all Interval objects from the list.
	 */
	public void clearIntervalList()
	{
		_objInterval.clear();
	}
	/**
	 * Gets the text content of Array object.
	 */
	public String getArrayText()
	{
		return _objArray==null ? null : _objArray.getText();
	}

	/**
	 * Replaces the existing text of Array object with a new text.
	 * If you pass in a null value to this method, the Array object is
	 * cleared and will not be marshaled.
	 * @param text	New text.
	 */
	public void setArrayText(String text)
	{
		if( text == null )
		{
			this._objArray = null;
			return;
		}

		if( this._objArray == null )
			this._objArray = new Array();

		this._objArray.setText(text);
		this._objArray._setParent(this);
	}

	/**
	 * Gets Array object.
	 */
	public Array getArray()
	{
		return _objArray;
	}

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

		obj._setParent(this);
	}
	/**
	 * Gets the text content of Array object.
	 */
	public String getArrayText1()
	{
		return _objArray1==null ? null : _objArray1.getText();
	}

	/**
	 * Replaces the existing text of Array object with a new text.
	 * If you pass in a null value to this method, the Array object is
	 * cleared and will not be marshaled.
	 * @param text	New text.
	 */
	public void setArrayText1(String text)
	{
		if( text == null )
		{
			this._objArray1 = null;
			return;
		}

		if( this._objArray1 == null )
			this._objArray1 = new Array();

		this._objArray1.setText(text);
		this._objArray1._setParent(this);
	}

	/**
	 * Gets Array object.
	 */
	public Array getArray1()
	{
		return _objArray1;
	}

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

		obj._setParent(this);
	}
	/**
	 * Gets the text content of Array object.
	 */
	public String getArrayText2()
	{
		return _objArray2==null ? null : _objArray2.getText();
	}

	/**
	 * Replaces the existing text of Array object with a new text.
	 * If you pass in a null value to this method, the Array object is
	 * cleared and will not be marshaled.
	 * @param text	New text.
	 */
	public void setArrayText2(String text)
	{
		if( text == null )
		{
			this._objArray2 = null;
			return;
		}

		if( this._objArray2 == null )
			this._objArray2 = new Array();

		this._objArray2.setText(text);
		this._objArray2._setParent(this);
	}

	/**
	 * Gets Array object.
	 */
	public Array getArray2()
	{
		return _objArray2;
	}

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

		obj._setParent(this);
	}

	/**
	 * Marshals this object to an element.
	 */
	public com.borland.xml.toolkit.Element marshal()
	{
		com.borland.xml.toolkit.Element elem = new com.borland.xml.toolkit.Element(get_TagName());
		/** Marshals "totalValuesSum" attribute */
		elem.addAttribute(totalValuesSum.marshal());
		/** Marshals "totalSquaresSum" attribute */
		elem.addAttribute(totalSquaresSum.marshal());
		/** Marshals a list of Extension objects to elements */
		Iterator it1 = _objExtension.iterator();
		while( it1.hasNext() )
		{
			Extension obj = (Extension)it1.next();
			if( obj != null )
				elem.addContent(obj.marshal());
		}
		/** Marshals a list of Interval objects to elements */
		Iterator it2 = _objInterval.iterator();
		while( it2.hasNext() )
		{
			Interval obj = (Interval)it2.next();
			if( obj != null )
				elem.addContent(obj.marshal());
		}
		/** Marshals a Array object to an element */
		if( _objArray != null )
			elem.addContent(_objArray.marshal());
		/** Marshals a Array object to an element */
		if( _objArray1 != null )
			elem.addContent(_objArray1.marshal());
		/** Marshals a Array object to an element */
		if( _objArray2 != null )
			elem.addContent(_objArray2.marshal());

		return elem;
	}

	/**
	 * Unmarshals the specified "ContStats" element back to a ContStats object.
	 */
	public static ContStats unmarshal(com.borland.xml.toolkit.Element elem)
	{
		if( elem == null )
			return null;

		ContStats __objContStats = new ContStats();
		if( __objContStats != null ) //found the element?
		{
			/** Unmarshals "totalValuesSum" attribute */
			__objContStats.totalValuesSum.setValue(elem.getAttribute("totalValuesSum"));
			/** Unmarshals "totalSquaresSum" attribute */
			__objContStats.totalSquaresSum.setValue(elem.getAttribute("totalSquaresSum"));
		}
		/** Unmarshals a list of "<<_tagName_>>" elements back to Extension objects. */
		Iterator it1 = elem.getChildren(Extension._tagName).iterator();
		while( it1.hasNext() )
			__objContStats.addExtension(Extension.unmarshal((com.borland.xml.toolkit.Element)it1.next()));
		/** Unmarshals a list of "<<_tagName_>>" elements back to Interval objects. */
		Iterator it2 = elem.getChildren(Interval._tagName).iterator();
		while( it2.hasNext() )
			__objContStats.addInterval(Interval.unmarshal((com.borland.xml.toolkit.Element)it2.next()));
		Iterator it3 = elem.getChildren(Array._tagName).iterator();
		if( it3.hasNext() )
		{
			/** Unmarshals an element back to a Array object */
			__objContStats.setArray(Array.unmarshal((com.borland.xml.toolkit.Element)it3.next()));
		}
		if( it3.hasNext() )
		{
			/** Unmarshals an element back to a Array object */
			__objContStats.setArray1(Array.unmarshal((com.borland.xml.toolkit.Element)it3.next()));
		}
		if( it3.hasNext() )
		{
			/** Unmarshals an element back to a Array object */
			__objContStats.setArray2(Array.unmarshal((com.borland.xml.toolkit.Element)it3.next()));
		}

		return __objContStats;
	}

	/**
	 * Validates this object. If you pass <code>true</code> to this method, it
	 * checks for the first error and stops. On the other hand, if you pass
	 * <code>false</code> to this method, it collects all the errors by
	 * visiting every available elements.
	 * @param firstError	<code>true</code> to exit this method when the first error
	 * is found; <code>false</code> to collect all errors.
	 * @return com.borland.xml.toolkit.ErrorList	A list that contains one or more errors.
	 * @see com.borland.xml.toolkit.XmlObject#validate()
	 * @see com.borland.xml.toolkit.XmlObject#isValid()
	 * @see com.borland.xml.toolkit.ErrorList
	 */
	public com.borland.xml.toolkit.ErrorList validate(boolean firstError)
	{
		com.borland.xml.toolkit.ErrorList errors = new com.borland.xml.toolkit.ErrorList();

		/** Extension is zero or more */
		Iterator it1 = _objExtension.iterator();
		while( it1.hasNext() )
		{
			Extension obj = (Extension)it1.next();
			if( obj != null )
			{
				errors.add(obj.validate(firstError));
				if( firstError && errors.size() > 0 )
					return errors;
			}
		}
		/** Interval is zero or more */
		Iterator it2 = _objInterval.iterator();
		while( it2.hasNext() )
		{
			Interval obj = (Interval)it2.next();
			if( obj != null )
			{
				errors.add(obj.validate(firstError));
				if( firstError && errors.size() > 0 )
					return errors;
			}
		}
		/** Array is optional */
		if( _objArray != null )
		{
			errors.add(_objArray.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}
		/** Array is optional */
		if( _objArray1 != null )
		{
			errors.add(_objArray1.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}
		/** Array is optional */
		if( _objArray2 != null )
		{
			errors.add(_objArray2.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}

		return errors.size()==0 ? null : errors;
	}

	/**
	 * Returns a list containing all child elements. Each element in the list is a subclass
	 * of XmlObject.
	 */
	public java.util.List _getChildren()
	{
		java.util.List children = new java.util.ArrayList();
		/** adds _objExtension */
		if( _objExtension != null && _objExtension.size() > 0 )
			children.add(_objExtension);
		/** adds _objInterval */
		if( _objInterval != null && _objInterval.size() > 0 )
			children.add(_objInterval);
		/** adds _objArray */
		if( _objArray != null )
			children.add(_objArray);
		/** adds _objArray1 */
		if( _objArray1 != null )
			children.add(_objArray1);
		/** adds _objArray2 */
		if( _objArray2 != null )
			children.add(_objArray2);
		return children;
	}


	/**
	 * Gets the tag name of this element.
	 */
	public String get_TagName()
	{
		return _tagName;
	}
}

⌨️ 快捷键说明

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