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

📄 discretizebin.java

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

package com.prudsys.pdm.Adapters.PmmlVersion20;


/**
 * The DiscretizeBin class represents the element "DiscretizeBin" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT DiscretizeBin (Interval)&gt;<br>
 */
public class DiscretizeBin extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "DiscretizeBin";
	/** Defines a binValue attribute */
	public com.borland.xml.toolkit.Attribute binValue = new com.borland.xml.toolkit.Attribute("binValue", "CDATA", "REQUIRED", "");
	/** Defines a Interval object */
	protected Interval _objInterval;

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

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

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

	/**
	 * Gets Interval object.
	 */
	public Interval getInterval()
	{
		return _objInterval;
	}

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

		return elem;
	}

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

		DiscretizeBin __objDiscretizeBin = new DiscretizeBin();
		if( __objDiscretizeBin != null ) //found the element?
		{
			/** Unmarshals "binValue" attribute */
			__objDiscretizeBin.binValue.setValue(elem.getAttribute("binValue"));
		}
		/** Unmarshals an element back to a Interval object */
		__objDiscretizeBin.setInterval(Interval.unmarshal(elem.getChild(Interval._tagName)));

		return __objDiscretizeBin;
	}

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

		/** Interval is mandatory */
		if( _objInterval != null )
			errors.add(_objInterval.validate(firstError));
		else
			errors.add(new com.borland.xml.toolkit.ElementError(this, Interval.class));
		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 _objInterval */
		if( _objInterval != null )
			children.add(_objInterval);
		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 + -