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

📄 setpredicate.java

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

package com.prudsys.pdm.Adapters.PmmlVersion20;


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

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

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

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

	/**
	 * 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 the value of "id" attribute.
	 */
	public String getId()
	{
		return id.getValue();
	}

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

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

	/**
	 * 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 "operator" attribute */
		elem.addAttribute(operator.marshal());
		/** Marshals "field" attribute */
		elem.addAttribute(field.marshal());
		/** Marshals "id" attribute */
		elem.addAttribute(id.marshal());
		/** Marshals a Array object to an element */
		if( _objArray != null )
			elem.addContent(_objArray.marshal());

		return elem;
	}

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

		SetPredicate __objSetPredicate = new SetPredicate();
		if( __objSetPredicate != null ) //found the element?
		{
			/** Unmarshals "operator" attribute */
			__objSetPredicate.operator.setValue(elem.getAttribute("operator"));
			/** Unmarshals "field" attribute */
			__objSetPredicate.field.setValue(elem.getAttribute("field"));
			/** Unmarshals "id" attribute */
			__objSetPredicate.id.setValue(elem.getAttribute("id"));
		}
		/** Unmarshals an element back to a Array object */
		__objSetPredicate.setArray(Array.unmarshal(elem.getChild(Array._tagName)));

		return __objSetPredicate;
	}

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

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