📄 algorithmparameter.java
字号:
/**
* The file is generated by BorlandXML.
*/
package com.prudsys.pdm.Utils.AlgorithmSpecification;
/**
* The AlgorithmParameter class represents the element "AlgorithmParameter" with the content
* model defined as follows:
* <p>
* <!ELEMENT AlgorithmParameter EMPTY><br>
*/
public class AlgorithmParameter extends com.borland.xml.toolkit.EmptyElement
{
/** xml tag name of this element. */
public static String _tagName = "AlgorithmParameter";
/** Defines a name attribute */
public com.borland.xml.toolkit.Attribute name = new com.borland.xml.toolkit.Attribute("name", "CDATA", "REQUIRED", "");
/** Defines a type attribute */
public com.borland.xml.toolkit.Attribute type = new com.borland.xml.toolkit.Attribute("type", "CDATA", "REQUIRED", "");
/** Defines a value attribute */
public com.borland.xml.toolkit.Attribute value = new com.borland.xml.toolkit.Attribute("value", "CDATA", "REQUIRED", "");
/** Defines a descr attribute */
public com.borland.xml.toolkit.Attribute descr = new com.borland.xml.toolkit.Attribute("descr", "CDATA", "REQUIRED", "");
/** Defines a method attribute */
public com.borland.xml.toolkit.Attribute method = new com.borland.xml.toolkit.Attribute("method", "CDATA", "REQUIRED", "");
/**
* Creates an empty AlgorithmParameter object.
*/
public AlgorithmParameter()
{
super();
}
/**
* Creates a AlgorithmParameter object with the specified state.
* @param state boolean value
*/
public AlgorithmParameter(boolean state)
{
super(state);
}
/**
* Gets the value of "name" attribute.
*/
public String getName()
{
return name.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setName(String value_)
{
name.setValue(value_ );
}
/**
* Gets the value of "type" attribute.
*/
public String getType()
{
return type.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setType(String value_)
{
type.setValue(value_ );
}
/**
* Gets the value of "value" attribute.
*/
public String getValue()
{
return value.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setValue(String value_)
{
value.setValue(value_ );
}
/**
* Gets the value of "descr" attribute.
*/
public String getDescr()
{
return descr.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setDescr(String value_)
{
descr.setValue(value_ );
}
/**
* Gets the value of "method" attribute.
*/
public String getMethod()
{
return method.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setMethod(String value_)
{
method.setValue(value_ );
}
/**
* Marshals this object to an element.
*/
public com.borland.xml.toolkit.Element marshal()
{
com.borland.xml.toolkit.Element elem = super.marshal();
/** Marshals "name" attribute */
elem.addAttribute(name.marshal());
/** Marshals "type" attribute */
elem.addAttribute(type.marshal());
/** Marshals "value" attribute */
elem.addAttribute(value.marshal());
/** Marshals "descr" attribute */
elem.addAttribute(descr.marshal());
/** Marshals "method" attribute */
elem.addAttribute(method.marshal());
return elem;
}
/**
* Unmarshals the specified "AlgorithmParameter" element back to a AlgorithmParameter object.
*/
public static AlgorithmParameter unmarshal(com.borland.xml.toolkit.Element elem)
{
AlgorithmParameter __objAlgorithmParameter = (AlgorithmParameter)com.borland.xml.toolkit.EmptyElement.unmarshal(elem, new AlgorithmParameter());
if( __objAlgorithmParameter != null ) //found the element?
{
/** Unmarshals "name" attribute */
__objAlgorithmParameter.name.setValue(elem.getAttribute("name"));
/** Unmarshals "type" attribute */
__objAlgorithmParameter.type.setValue(elem.getAttribute("type"));
/** Unmarshals "value" attribute */
__objAlgorithmParameter.value.setValue(elem.getAttribute("value"));
/** Unmarshals "descr" attribute */
__objAlgorithmParameter.descr.setValue(elem.getAttribute("descr"));
/** Unmarshals "method" attribute */
__objAlgorithmParameter.method.setValue(elem.getAttribute("method"));
}
return __objAlgorithmParameter;
}
/**
* 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 + -