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

📄 univariatestats.java

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

package com.prudsys.pdm.Adapters.PmmlVersion20;


/**
 * The UnivariateStats class represents the element "UnivariateStats" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT UnivariateStats ((Counts?,NumericInfo?)?,DiscrStats?,ContStats?)&gt;<br>
 */
public class UnivariateStats extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "UnivariateStats";
	/** Defines a field attribute */
	public com.borland.xml.toolkit.Attribute field = new com.borland.xml.toolkit.Attribute("field", "CDATA", "IMPLIED", "");
	/** Defines a Counts object */
	protected Counts _objCounts;
	/** Defines a NumericInfo object */
	protected NumericInfo _objNumericInfo;
	/** Defines a DiscrStats object */
	protected DiscrStats _objDiscrStats;
	/** Defines a ContStats object */
	protected ContStats _objContStats;

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

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

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

	/**
	 * Gets Counts object.
	 */
	public Counts getCounts()
	{
		return _objCounts;
	}

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

        obj._setParent(this);
	}
	/**
	 * Gets NumericInfo object.
	 */
	public NumericInfo getNumericInfo()
	{
		return _objNumericInfo;
	}

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

        obj._setParent(this);
	}
	/**
	 * Gets DiscrStats object.
	 */
	public DiscrStats getDiscrStats()
	{
		return _objDiscrStats;
	}

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

        obj._setParent(this);
	}
	/**
	 * Gets ContStats object.
	 */
	public ContStats getContStats()
	{
		return _objContStats;
	}

	/**
	 * Replaces the existing ContStats object with a new object.
	 * If you pass in a null value to this method, the ContStats object is
	 * cleared and will not be marshaled.
	 * @param obj	A new object.
	 */
	public void setContStats(ContStats obj)
	{
		this._objContStats = 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 "field" attribute */
		elem.addAttribute(field.marshal());
		/** Marshals a Counts object to an element */
		if( _objCounts != null )
			elem.addContent(_objCounts.marshal());
		/** Marshals a NumericInfo object to an element */
		if( _objNumericInfo != null )
			elem.addContent(_objNumericInfo.marshal());
		/** Marshals a DiscrStats object to an element */
		if( _objDiscrStats != null )
			elem.addContent(_objDiscrStats.marshal());
		/** Marshals a ContStats object to an element */
		if( _objContStats != null )
			elem.addContent(_objContStats.marshal());

		return elem;
	}

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

		UnivariateStats __objUnivariateStats = new UnivariateStats();
		if( __objUnivariateStats != null ) //found the element?
		{
			/** Unmarshals "field" attribute */
			__objUnivariateStats.field.setValue(elem.getAttribute("field"));
		}
		/** Unmarshals an element back to a Counts object */
		__objUnivariateStats.setCounts(Counts.unmarshal(elem.getChild(Counts._tagName)));
		/** Unmarshals an element back to a NumericInfo object */
		__objUnivariateStats.setNumericInfo(NumericInfo.unmarshal(elem.getChild(NumericInfo._tagName)));
		/** Unmarshals an element back to a DiscrStats object */
		__objUnivariateStats.setDiscrStats(DiscrStats.unmarshal(elem.getChild(DiscrStats._tagName)));
		/** Unmarshals an element back to a ContStats object */
		__objUnivariateStats.setContStats(ContStats.unmarshal(elem.getChild(ContStats._tagName)));

		return __objUnivariateStats;
	}

	/**
	 * 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();

		/** Counts is optional */
		if( _objCounts != null )
		{
			errors.add(_objCounts.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}
		/** NumericInfo is optional */
		if( _objNumericInfo != null )
		{
			errors.add(_objNumericInfo.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}
		/** DiscrStats is optional */
		if( _objDiscrStats != null )
		{
			errors.add(_objDiscrStats.validate(firstError));
			if( firstError && errors.size() > 0 )
				return errors;
		}
		/** ContStats is optional */
		if( _objContStats != null )
		{
			errors.add(_objContStats.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 _objCounts */
		if( _objCounts != null )
			children.add(_objCounts);
		/** adds _objNumericInfo */
		if( _objNumericInfo != null )
			children.add(_objNumericInfo);
		/** adds _objDiscrStats */
		if( _objDiscrStats != null )
			children.add(_objDiscrStats);
		/** adds _objContStats */
		if( _objContStats != null )
			children.add(_objContStats);
		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 + -