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

📄 covariances.java

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

package com.prudsys.pdm.Adapters.PmmlVersion20;


/**
 * The Covariances class represents the element "Covariances" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT Covariances (Matrix)&gt;<br>
 */
public class Covariances extends com.borland.xml.toolkit.XmlObject 
{
	/** xml tag name of this element. */
	public static String _tagName = "Covariances";
	/** Defines a Matrix object */
	protected Matrix _objMatrix;

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

	/**
	 * Gets Matrix object.
	 */
	public Matrix getMatrix()
	{
		return _objMatrix;
	}

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

		return elem;
	}

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

		Covariances __objCovariances = new Covariances();
		/** Unmarshals an element back to a Matrix object */
		__objCovariances.setMatrix(Matrix.unmarshal(elem.getChild(Matrix._tagName)));

		return __objCovariances;
	}

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

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