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