📄 row.java
字号:
/**
* This file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The Row class represents the element "row" with the content
* model defined as follows:
* <p>
* <!ELEMENT row (member,pargroup)><br>
*/
public class Row extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "row";
/** Defines a Member object */
protected Member _objMember;
/** Defines a Pargroup object */
protected Pargroup _objPargroup;
/**
* Creates an empty Row object
*/
public Row()
{
super();
}
/**
* Gets Member object.
*/
public Member getMember()
{
return _objMember;
}
/**
* Replaces the existing Member object with a new object.
* If you pass in a null value to this method, the Member object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setMember(Member obj)
{
this._objMember = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Gets Pargroup object.
*/
public Pargroup getPargroup()
{
return _objPargroup;
}
/**
* Replaces the existing Pargroup object with a new object.
* If you pass in a null value to this method, the Pargroup object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setPargroup(Pargroup obj)
{
this._objPargroup = 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 a Member object to an element */
if( _objMember != null )
elem.addContent(_objMember.marshal());
/** Marshals a Pargroup object to an element */
if( _objPargroup != null )
elem.addContent(_objPargroup.marshal());
return elem;
}
/**
* Unmarshals the specified "row" element back to a Row object.
*/
public static Row unmarshal(com.borland.xml.toolkit.Element elem)
{
if( elem == null )
return null;
Row __objRow = new Row();
/** Unmarshals an element back to a Member object */
__objRow.setMember(Member.unmarshal(elem.getChild(Member._tagName)));
/** Unmarshals an element back to a Pargroup object */
__objRow.setPargroup(Pargroup.unmarshal(elem.getChild(Pargroup._tagName)));
return __objRow;
}
/**
* 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();
/** Member is mandatory */
if( _objMember != null )
errors.add(_objMember.validate(firstError));
else
errors.add(new com.borland.xml.toolkit.ElementError(this, Member.class));
if( firstError && errors.size() > 0 )
return errors;
/** Pargroup is mandatory */
if( _objPargroup != null )
errors.add(_objPargroup.validate(firstError));
else
errors.add(new com.borland.xml.toolkit.ElementError(this, Pargroup.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 _objMember */
if( _objMember != null )
children.add(_objMember);
/** adds _objPargroup */
if( _objPargroup != null )
children.add(_objPargroup);
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 + -