📄 polynomialkerneltype.java
字号:
/**
* The file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The PolynomialKernelType class represents the element "PolynomialKernelType" with the content
* model defined as follows:
* <p>
* <!ELEMENT PolynomialKernelType EMPTY><br>
*/
public class PolynomialKernelType extends com.borland.xml.toolkit.EmptyElement
{
/** xml tag name of this element. */
public static String _tagName = "PolynomialKernelType";
/** Defines a gamma attribute */
public com.borland.xml.toolkit.Attribute gamma = new com.borland.xml.toolkit.Attribute("gamma", "CDATA", "REQUIRED", "");
/** Defines a coef0 attribute */
public com.borland.xml.toolkit.Attribute coef0 = new com.borland.xml.toolkit.Attribute("coef0", "CDATA", "REQUIRED", "");
/** Defines a description attribute */
public com.borland.xml.toolkit.Attribute description = new com.borland.xml.toolkit.Attribute("description", "CDATA", "REQUIRED", "");
/** Defines a degree attribute */
public com.borland.xml.toolkit.Attribute degree = new com.borland.xml.toolkit.Attribute("degree", "CDATA", "REQUIRED", "");
/**
* Creates an empty PolynomialKernelType object.
*/
public PolynomialKernelType()
{
super();
}
/**
* Creates a PolynomialKernelType object with the specified state.
* @param state boolean value
*/
public PolynomialKernelType(boolean state)
{
super(state);
}
/**
* Gets the value of "gamma" attribute.
*/
public String getGamma()
{
return gamma.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setGamma(String value_)
{
gamma.setValue(value_ );
}
/**
* Gets the value of "coef0" attribute.
*/
public String getCoef0()
{
return coef0.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setCoef0(String value_)
{
coef0.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 "degree" attribute.
*/
public String getDegree()
{
return degree.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setDegree(String value_)
{
degree.setValue(value_ );
}
/**
* Marshals this object to an element.
*/
public com.borland.xml.toolkit.Element marshal()
{
com.borland.xml.toolkit.Element elem = super.marshal();
/** Marshals "gamma" attribute */
elem.addAttribute(gamma.marshal());
/** Marshals "coef0" attribute */
elem.addAttribute(coef0.marshal());
/** Marshals "description" attribute */
elem.addAttribute(description.marshal());
/** Marshals "degree" attribute */
elem.addAttribute(degree.marshal());
return elem;
}
/**
* Unmarshals the specified "PolynomialKernelType" element back to a PolynomialKernelType object.
*/
public static PolynomialKernelType unmarshal(com.borland.xml.toolkit.Element elem)
{
PolynomialKernelType __objPolynomialKernelType = (PolynomialKernelType)com.borland.xml.toolkit.EmptyElement.unmarshal(elem, new PolynomialKernelType());
if( __objPolynomialKernelType != null ) //found the element?
{
/** Unmarshals "gamma" attribute */
__objPolynomialKernelType.gamma.setValue(elem.getAttribute("gamma"));
/** Unmarshals "coef0" attribute */
__objPolynomialKernelType.coef0.setValue(elem.getAttribute("coef0"));
/** Unmarshals "description" attribute */
__objPolynomialKernelType.description.setValue(elem.getAttribute("description"));
/** Unmarshals "degree" attribute */
__objPolynomialKernelType.degree.setValue(elem.getAttribute("degree"));
}
return __objPolynomialKernelType;
}
/**
* 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 + -