📄 childparent.java
字号:
/**
* This file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
/**
* The ChildParent class represents the element "ChildParent" with the content
* model defined as follows:
* <p>
* <!ELEMENT ChildParent (TableLocator|InlineTable)><br>
*/
public class ChildParent extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "ChildParent";
/** Defines a parentLevelField attribute */
public com.borland.xml.toolkit.Attribute parentLevelField = new com.borland.xml.toolkit.Attribute("parentLevelField", "CDATA", "IMPLIED", "");
/** Defines a childField attribute */
public com.borland.xml.toolkit.Attribute childField = new com.borland.xml.toolkit.Attribute("childField", "CDATA", "REQUIRED", "");
/** Defines a isRecursive attribute */
public com.borland.xml.toolkit.Attribute isRecursive = new com.borland.xml.toolkit.Attribute("isRecursive", "(no | yes)", "", "no");
/** Defines a parentField attribute */
public com.borland.xml.toolkit.Attribute parentField = new com.borland.xml.toolkit.Attribute("parentField", "CDATA", "REQUIRED", "");
/** Defines a TableLocator object */
protected TableLocator _objTableLocator;
/** Defines a InlineTable object */
protected InlineTable _objInlineTable;
/**
* Creates an empty ChildParent object
*/
public ChildParent()
{
super();
}
/**
* Gets the value of "parentLevelField" attribute.
*/
public String getParentLevelField()
{
return parentLevelField.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setParentLevelField(String value_)
{
parentLevelField.setValue(value_ );
}
/**
* Gets the value of "childField" attribute.
*/
public String getChildField()
{
return childField.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setChildField(String value_)
{
childField.setValue(value_ );
}
/**
* Gets the value of "isRecursive" attribute.
*/
public String getIsRecursive()
{
return isRecursive.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setIsRecursive(String value_)
{
isRecursive.setValue(value_ );
}
/**
* Gets the value of "parentField" attribute.
*/
public String getParentField()
{
return parentField.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setParentField(String value_)
{
parentField.setValue(value_ );
}
/**
* Gets TableLocator object.
*/
public TableLocator getTableLocator()
{
return _objTableLocator;
}
/**
* Replaces the existing TableLocator object with a new object.
* If you pass in a null value to this method, the TableLocator object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setTableLocator(TableLocator obj)
{
this._objTableLocator = obj;
if( obj == null )
return;
obj._setParent(this);
_objInlineTable = null;
}
/**
* Gets InlineTable object.
*/
public InlineTable getInlineTable()
{
return _objInlineTable;
}
/**
* Replaces the existing InlineTable object with a new object.
* If you pass in a null value to this method, the InlineTable object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setInlineTable(InlineTable obj)
{
this._objInlineTable = obj;
if( obj == null )
return;
obj._setParent(this);
_objTableLocator = null;
}
/**
* 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 "parentLevelField" attribute */
elem.addAttribute(parentLevelField.marshal());
/** Marshals "childField" attribute */
elem.addAttribute(childField.marshal());
/** Marshals "isRecursive" attribute */
elem.addAttribute(isRecursive.marshal());
/** Marshals "parentField" attribute */
elem.addAttribute(parentField.marshal());
/** Marshals a TableLocator object to an element */
if( _objTableLocator != null )
elem.addContent(_objTableLocator.marshal());
/** Marshals a InlineTable object to an element */
if( _objInlineTable != null )
elem.addContent(_objInlineTable.marshal());
return elem;
}
/**
* Unmarshals the specified "ChildParent" element back to a ChildParent object.
*/
public static ChildParent unmarshal(com.borland.xml.toolkit.Element elem)
{
if( elem == null )
return null;
ChildParent __objChildParent = new ChildParent();
if( __objChildParent != null ) //found the element?
{
/** Unmarshals "parentLevelField" attribute */
__objChildParent.parentLevelField.setValue(elem.getAttribute("parentLevelField"));
/** Unmarshals "childField" attribute */
__objChildParent.childField.setValue(elem.getAttribute("childField"));
/** Unmarshals "isRecursive" attribute */
__objChildParent.isRecursive.setValue(elem.getAttribute("isRecursive"));
/** Unmarshals "parentField" attribute */
__objChildParent.parentField.setValue(elem.getAttribute("parentField"));
}
/** Unmarshals an element back to a TableLocator object */
__objChildParent.setTableLocator(TableLocator.unmarshal(elem.getChild(TableLocator._tagName)));
/** Unmarshals an element back to a InlineTable object */
__objChildParent.setInlineTable(InlineTable.unmarshal(elem.getChild(InlineTable._tagName)));
return __objChildParent;
}
/**
* 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();
/** "or" block */
if( _objTableLocator != null )
{
/** TableLocator is mandatory */
if( _objTableLocator != null )
errors.add(_objTableLocator.validate(firstError));
else
errors.add(new com.borland.xml.toolkit.ElementError(this, TableLocator.class));
if( firstError && errors.size() > 0 )
return errors;
}
if( _objInlineTable != null )
{
/** InlineTable is mandatory */
if( _objInlineTable != null )
errors.add(_objInlineTable.validate(firstError));
else
errors.add(new com.borland.xml.toolkit.ElementError(this, InlineTable.class));
if( firstError && errors.size() > 0 )
return errors;
}
if( !(_objTableLocator != null) && !(_objInlineTable != null) ) /** missing one or more elements? */
{
com.borland.xml.toolkit.OrErrorList errors1 = new com.borland.xml.toolkit.OrErrorList();
errors1.add(new com.borland.xml.toolkit.ElementError(this, TableLocator.class));
errors1.add(new com.borland.xml.toolkit.ElementError(this, InlineTable.class));
errors.add(errors1);
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 _objTableLocator */
if( _objTableLocator != null )
children.add(_objTableLocator);
/** adds _objInlineTable */
if( _objInlineTable != null )
children.add(_objInlineTable);
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 + -