📄 datafield.java
字号:
/**
* This file is generated by BorlandXML.
*/
package com.prudsys.pdm.Adapters.PmmlVersion20;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/**
* The DataField class represents the element "DataField" with the content
* model defined as follows:
* <p>
* <!ELEMENT DataField (Extension*,(Interval*|Value*),Taxonomy*)><br>
*/
public class DataField extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "DataField";
/** Defines a taxonomy attribute */
public com.borland.xml.toolkit.Attribute taxonomy = new com.borland.xml.toolkit.Attribute("taxonomy", "CDATA", "IMPLIED", "");
/** Defines a displayName attribute */
public com.borland.xml.toolkit.Attribute displayName = new com.borland.xml.toolkit.Attribute("displayName", "CDATA", "IMPLIED", "");
/** Defines a dataType attribute */
public com.borland.xml.toolkit.Attribute dataType = new com.borland.xml.toolkit.Attribute("dataType", "(string | integer | float | double | boolean | datePrudsys)", "IMPLIED", "");
/** Defines a name attribute */
public com.borland.xml.toolkit.Attribute name = new com.borland.xml.toolkit.Attribute("name", "CDATA", "REQUIRED", "");
/** Defines a isCyclic attribute */
public com.borland.xml.toolkit.Attribute isCyclic = new com.borland.xml.toolkit.Attribute("isCyclic", "(0 | 1)", "", "0");
/** Defines a optype attribute */
public com.borland.xml.toolkit.Attribute optype = new com.borland.xml.toolkit.Attribute("optype", "(categorical | ordinal | continuous)", "REQUIRED", "");
/** Defines a list of Extension objects. */
protected ArrayList _objExtension = new ArrayList();
/** Defines a list of Interval objects. */
protected ArrayList _objInterval = new ArrayList();
/** Defines a list of Value objects. */
protected ArrayList _objValue = new ArrayList();
/** Defines a list of Taxonomy objects. */
protected ArrayList _objTaxonomy = new ArrayList();
/**
* Creates an empty DataField object
*/
public DataField()
{
super();
}
/**
* Gets the value of "taxonomy" attribute.
*/
public String getTaxonomyRefName()
{
return taxonomy.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setTaxonomyRefName(String value_)
{
taxonomy.setValue(value_ );
}
/**
* Gets the value of "displayName" attribute.
*/
public String getDisplayName()
{
return displayName.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setDisplayName(String value_)
{
displayName.setValue(value_ );
}
/**
* Gets the value of "dataType" attribute.
*/
public String getDataType()
{
return dataType.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setDataType(String value_)
{
dataType.setValue(value_ );
}
/**
* Gets the value of "name" attribute.
*/
public String getName()
{
return name.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setName(String value_)
{
name.setValue(value_ );
}
/**
* Gets the value of "isCyclic" attribute.
*/
public String getIsCyclic()
{
return isCyclic.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setIsCyclic(String value_)
{
isCyclic.setValue(value_ );
}
/**
* Gets the value of "optype" attribute.
*/
public String getOptype()
{
return optype.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setOptype(String value_)
{
optype.setValue(value_ );
}
/**
* Returns an array of Extension objects. The length of the returned
* array is zero if the list of Extension object is empty.
*/
public Extension[] getExtension()
{
return (Extension[])_objExtension.toArray(new Extension[0]);
}
/**
* Replaces all existing Extension objects with a new array of
* Extension objects.
* @param objArray an array of Extension objects.
*/
public void setExtension(Extension[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objExtension.clear();
else
{
this._objExtension = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the Extension object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public Extension getExtension(int index)
{
return (Extension)_objExtension.get(index);
}
/**
* Replaces an existing Extension object at the specified index with
* a new Extension object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setExtension(int index, Extension obj)
{
if( obj == null )
removeExtension(index);
else
{
_objExtension.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of Extension objects in the list.
*/
public int getExtensionCount()
{
return _objExtension.size();
}
/**
* Returns <code>true</code> if there is no Extension object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoExtension()
{
return _objExtension.size() == 0;
}
/**
* Returns a read-only list of Extension objects.
*/
public List getExtensionList()
{
return Collections.unmodifiableList(_objExtension);
}
/**
* Adds a new Extension object at the end of the list.
* @return <code>true</code> if the new object is added to the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean addExtension(Extension obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objExtension.add(obj);
}
/**
* Adds a list of new Extension objects at the end of the list.
* @return <code>true</code> if the list was changed; otherwise, the method
* returns <code>false</code>.
*/
public boolean addExtension(Collection coExtension)
{
if( coExtension==null )
return false;
java.util.Iterator it = coExtension.iterator();
while( it.hasNext() )
{
Object obj = it.next();
if( obj != null && obj instanceof com.borland.xml.toolkit.XmlObject )
((com.borland.xml.toolkit.XmlObject)obj)._setParent(this);
}
return _objExtension.addAll(coExtension);
}
/**
* Removes an existing Extension object at the specified index.
* @return The removed object.
*/
public Extension removeExtension(int index)
{
return (Extension)_objExtension.remove(index);
}
/**
* Removes the specified Extension object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeExtension(Extension obj)
{
return _objExtension.remove(obj);
}
/**
* Clears all Extension objects from the list.
*/
public void clearExtensionList()
{
_objExtension.clear();
}
/**
* Returns an array of Interval objects. The length of the returned
* array is zero if the list of Interval object is empty.
*/
public Interval[] getInterval()
{
return (Interval[])_objInterval.toArray(new Interval[0]);
}
/**
* Replaces all existing Interval objects with a new array of
* Interval objects.
* @param objArray an array of Interval objects.
*/
public void setInterval(Interval[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objInterval.clear();
else
{
this._objInterval = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
clearValueList();
}
/**
* Gets the Interval object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public Interval getInterval(int index)
{
return (Interval)_objInterval.get(index);
}
/**
* Replaces an existing Interval object at the specified index with
* a new Interval object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setInterval(int index, Interval obj)
{
if( obj == null )
removeInterval(index);
else
{
_objInterval.set(index, obj);
obj._setParent(this);
}
clearValueList();
}
/**
* Returns the number of Interval objects in the list.
*/
public int getIntervalCount()
{
return _objInterval.size();
}
/**
* Returns <code>true</code> if there is no Interval object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoInterval()
{
return _objInterval.size() == 0;
}
/**
* Returns a read-only list of Interval objects.
*/
public List getIntervalList()
{
return Collections.unmodifiableList(_objInterval);
}
/**
* Adds a new Interval object at the end of the list.
* @return <code>true</code> if the new object is added to the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean addInterval(Interval obj)
{
if( obj==null )
return false;
clearValueList();
obj._setParent(this);
return _objInterval.add(obj);
}
/**
* Adds a list of new Interval objects at the end of the list.
* @return <code>true</code> if the list was changed; otherwise, the method
* returns <code>false</code>.
*/
public boolean addInterval(Collection coInterval)
{
if( coInterval==null )
return false;
clearValueList();
java.util.Iterator it = coInterval.iterator();
while( it.hasNext() )
{
Object obj = it.next();
if( obj != null && obj instanceof com.borland.xml.toolkit.XmlObject )
((com.borland.xml.toolkit.XmlObject)obj)._setParent(this);
}
return _objInterval.addAll(coInterval);
}
/**
* Removes an existing Interval object at the specified index.
* @return The removed object.
*/
public Interval removeInterval(int index)
{
return (Interval)_objInterval.remove(index);
}
/**
* Removes the specified Interval object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeInterval(Interval obj)
{
return _objInterval.remove(obj);
}
/**
* Clears all Interval objects from the list.
*/
public void clearIntervalList()
{
_objInterval.clear();
}
/**
* Returns an array of Value objects. The length of the returned
* array is zero if the list of Value object is empty.
*/
public Value[] getValue()
{
return (Value[])_objValue.toArray(new Value[0]);
}
/**
* Replaces all existing Value objects with a new array of
* Value objects.
* @param objArray an array of Value objects.
*/
public void setValue(Value[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objValue.clear();
else
{
this._objValue = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
clearIntervalList();
}
/**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -