📄 simplepredicate.java
字号:
/**
* The file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The SimplePredicate class represents the element "SimplePredicate" with the content
* model defined as follows:
* <p>
* <!ELEMENT SimplePredicate EMPTY><br>
*/
public class SimplePredicate extends com.borland.xml.toolkit.EmptyElement
{
/** xml tag name of this element. */
public static String _tagName = "SimplePredicate";
/** Defines a operator attribute */
public com.borland.xml.toolkit.Attribute operator = new com.borland.xml.toolkit.Attribute("operator", "(equal | lessThan | notEqual | lessOrEqual | greaterThan | greaterOrEqual)", "REQUIRED", "");
/** Defines a value attribute */
public com.borland.xml.toolkit.Attribute value = new com.borland.xml.toolkit.Attribute("value", "CDATA", "REQUIRED", "");
/** Defines a field attribute */
public com.borland.xml.toolkit.Attribute field = new com.borland.xml.toolkit.Attribute("field", "CDATA", "REQUIRED", "");
/**
* Creates an empty SimplePredicate object.
*/
public SimplePredicate()
{
super();
}
/**
* Creates a SimplePredicate object with the specified state.
* @param state boolean value
*/
public SimplePredicate(boolean state)
{
super(state);
}
/**
* 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 "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 "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_ );
}
/**
* Marshals this object to an element.
*/
public com.borland.xml.toolkit.Element marshal()
{
com.borland.xml.toolkit.Element elem = super.marshal();
/** Marshals "operator" attribute */
elem.addAttribute(operator.marshal());
/** Marshals "value" attribute */
elem.addAttribute(value.marshal());
/** Marshals "field" attribute */
elem.addAttribute(field.marshal());
return elem;
}
/**
* Unmarshals the specified "SimplePredicate" element back to a SimplePredicate object.
*/
public static SimplePredicate unmarshal(com.borland.xml.toolkit.Element elem)
{
SimplePredicate __objSimplePredicate = (SimplePredicate)com.borland.xml.toolkit.EmptyElement.unmarshal(elem, new SimplePredicate());
if( __objSimplePredicate != null ) //found the element?
{
/** Unmarshals "operator" attribute */
__objSimplePredicate.operator.setValue(elem.getAttribute("operator"));
/** Unmarshals "value" attribute */
__objSimplePredicate.value.setValue(elem.getAttribute("value"));
/** Unmarshals "field" attribute */
__objSimplePredicate.field.setValue(elem.getAttribute("field"));
}
return __objSimplePredicate;
}
/**
* 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 + -