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

📄 databasesource.java

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

package com.prudsys.pdm.Adapters.ServiceAPI.DataSource;

/**
 * The DatabaseSource class represents the element "DatabaseSource" with the content
 * model defined as follows:
 * <p>
 * &lt;!ELEMENT DatabaseSource EMPTY&gt;<br>
 */
public class DatabaseSource extends com.borland.xml.toolkit.EmptyElement 
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2927152392576115651L;
	/** xml tag name of this element. */
	public static String _tagName = "DatabaseSource";
	/** Defines a user attribute */
	public com.borland.xml.toolkit.Attribute user = new com.borland.xml.toolkit.Attribute("user", "CDATA", "IMPLIED", "");
	/** Defines a url attribute */
	public com.borland.xml.toolkit.Attribute url = new com.borland.xml.toolkit.Attribute("url", "CDATA", "REQUIRED", "");
	/** Defines a password attribute */
	public com.borland.xml.toolkit.Attribute password = new com.borland.xml.toolkit.Attribute("password", "CDATA", "IMPLIED", "");
	/** Defines a request attribute */
	public com.borland.xml.toolkit.Attribute request = new com.borland.xml.toolkit.Attribute("request", "CDATA", "REQUIRED", "");
	/** Defines a description attribute */
	public com.borland.xml.toolkit.Attribute description = new com.borland.xml.toolkit.Attribute("description", "CDATA", "IMPLIED", "");
	/** Defines a driver attribute */
	public com.borland.xml.toolkit.Attribute driver = new com.borland.xml.toolkit.Attribute("driver", "CDATA", "REQUIRED", "");

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

	/**
	 * Creates a DatabaseSource object with the specified state.
	 * @param state	boolean value
	 */
	public DatabaseSource(boolean state)
	{
		super(state);
	}

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

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

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

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

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

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

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

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

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

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

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

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

	/**
	 * Marshals this object to an element.
	 */
	public com.borland.xml.toolkit.Element marshal()
	{
		com.borland.xml.toolkit.Element elem = super.marshal();
		/** Marshals "user" attribute */
		elem.addAttribute(user.marshal());
		/** Marshals "url" attribute */
		elem.addAttribute(url.marshal());
		/** Marshals "password" attribute */
		elem.addAttribute(password.marshal());
		/** Marshals "request" attribute */
		elem.addAttribute(request.marshal());
		/** Marshals "description" attribute */
		elem.addAttribute(description.marshal());
		/** Marshals "driver" attribute */
		elem.addAttribute(driver.marshal());
		return elem;
	}

	/**
	 * Unmarshals the specified "DatabaseSource" element back to a DatabaseSource object.
	 */
	public static DatabaseSource unmarshal(com.borland.xml.toolkit.Element elem)
	{
		DatabaseSource __objDatabaseSource = (DatabaseSource)com.borland.xml.toolkit.EmptyElement.unmarshal(elem, new DatabaseSource());
		if( __objDatabaseSource != null ) //found the element?
		{
			/** Unmarshals "user" attribute */
			__objDatabaseSource.user.setValue(elem.getAttribute("user"));
			/** Unmarshals "url" attribute */
			__objDatabaseSource.url.setValue(elem.getAttribute("url"));
			/** Unmarshals "password" attribute */
			__objDatabaseSource.password.setValue(elem.getAttribute("password"));
			/** Unmarshals "request" attribute */
			__objDatabaseSource.request.setValue(elem.getAttribute("request"));
			/** Unmarshals "description" attribute */
			__objDatabaseSource.description.setValue(elem.getAttribute("description"));
			/** Unmarshals "driver" attribute */
			__objDatabaseSource.driver.setValue(elem.getAttribute("driver"));
		}
		return __objDatabaseSource;
	}

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


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


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

⌨️ 快捷键说明

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