📄 simplesetpredicate.java
字号:
/**
* This file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The SimpleSetPredicate class represents the element "SimpleSetPredicate" with the content
* model defined as follows:
* <p>
* <!ELEMENT SimpleSetPredicate (Array)><br>
*/
public class SimpleSetPredicate extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "SimpleSetPredicate";
/** Defines a booleanOperator attribute */
public com.borland.xml.toolkit.Attribute booleanOperator = new com.borland.xml.toolkit.Attribute("booleanOperator", "(isIn | isNotIn)", "REQUIRED", "");
/** Defines a field attribute */
public com.borland.xml.toolkit.Attribute field = new com.borland.xml.toolkit.Attribute("field", "CDATA", "REQUIRED", "");
/** Defines a Array object */
protected Array _objArray;
/**
* Creates an empty SimpleSetPredicate object
*/
public SimpleSetPredicate()
{
super();
}
/**
* Gets the value of "booleanOperator" attribute.
*/
public String getBooleanOperator()
{
return booleanOperator.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setBooleanOperator(String value_)
{
booleanOperator.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_ );
}
/**
* Gets the text content of Array object.
*/
public String getArrayText()
{
return _objArray==null ? null : _objArray.getText();
}
/**
* Replaces the existing text of Array object with a new text.
* If you pass in a null value to this method, the Array object is
* cleared and will not be marshaled.
* @param text New text.
*/
public void setArrayText(String text)
{
if( text == null )
{
this._objArray = null;
return;
}
if( this._objArray == null )
this._objArray = new Array();
this._objArray.setText(text);
this._objArray._setParent(this);
}
/**
* Gets Array object.
*/
public Array getArray()
{
return _objArray;
}
/**
* Replaces the existing Array object with a new object.
* If you pass in a null value to this method, the Array object is
* cleared and will not be marshaled.
* @param obj New object.
*/
public void setArray(Array obj)
{
this._objArray = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Marshals this object to an element.
*/
public com.borland.xml.toolkit.Element marshal()
{
com.borland.xml.toolkit.Element elem = new com.borland.xml.toolkit.Element(get_TagName());
/** Marshals "booleanOperator" attribute */
elem.addAttribute(booleanOperator.marshal());
/** Marshals "field" attribute */
elem.addAttribute(field.marshal());
/** Marshals a Array object to an element */
if( _objArray != null )
elem.addContent(_objArray.marshal());
return elem;
}
/**
* Unmarshals the specified "SimpleSetPredicate" element back to a SimpleSetPredicate object.
*/
public static SimpleSetPredicate unmarshal(com.borland.xml.toolkit.Element elem)
{
if( elem == null )
return null;
SimpleSetPredicate __objSimpleSetPredicate = new SimpleSetPredicate();
if( __objSimpleSetPredicate != null ) //found the element?
{
/** Unmarshals "booleanOperator" attribute */
__objSimpleSetPredicate.booleanOperator.setValue(elem.getAttribute("booleanOperator"));
/** Unmarshals "field" attribute */
__objSimpleSetPredicate.field.setValue(elem.getAttribute("field"));
}
/** Unmarshals an element back to a Array object */
__objSimpleSetPredicate.setArray(Array.unmarshal(elem.getChild(Array._tagName)));
return __objSimpleSetPredicate;
}
/**
* 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();
/** Array is mandatory */
if( _objArray != null )
errors.add(_objArray.validate(firstError));
else
errors.add(new com.borland.xml.toolkit.ElementError(this, Array.class));
if( firstError && errors.size() > 0 )
return errors;
return errors.size()==0 ? null : errors;
}
/**
* Returns a list containing all child elements. Each element in the list is a subclass
* of XmlObject.
*/
public java.util.List _getChildren()
{
java.util.List children = new java.util.ArrayList();
/** adds _objArray */
if( _objArray != null )
children.add(_objArray);
return children;
}
/**
* Gets the tag name of this element.
*/
public String get_TagName()
{
return _tagName;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -