📄 pmml.java
字号:
*/
public boolean removeSparseGridModel(SparseGridModel obj)
{
return _objSparseGridModel.remove(obj);
}
/**
* Clears all SparseGridModel objects from the list.
*/
public void clearSparseGridModelList()
{
_objSparseGridModel.clear();
}
/**
* Returns an array of TreeModel objects. The length of the returned
* array is zero if the list of TreeModel object is empty.
*/
public TreeModel[] getTreeModel()
{
return (TreeModel[])_objTreeModel.toArray(new TreeModel[0]);
}
/**
* Replaces all existing TreeModel objects with a new array of
* TreeModel objects.
* @param objArray an array of TreeModel objects.
*/
public void setTreeModel(TreeModel[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objTreeModel.clear();
else
{
this._objTreeModel = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the TreeModel object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public TreeModel getTreeModel(int index)
{
return (TreeModel)_objTreeModel.get(index);
}
/**
* Replaces an existing TreeModel object at the specified index with
* a new TreeModel object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setTreeModel(int index, TreeModel obj)
{
if( obj == null )
removeTreeModel(index);
else
{
_objTreeModel.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of TreeModel objects in the list.
*/
public int getTreeModelCount()
{
return _objTreeModel.size();
}
/**
* Returns <code>true</code> if there is no TreeModel object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoTreeModel()
{
return _objTreeModel.size() == 0;
}
/**
* Returns a read-only list of TreeModel objects.
*/
public List getTreeModelList()
{
return Collections.unmodifiableList(_objTreeModel);
}
/**
* Adds a new TreeModel 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 addTreeModel(TreeModel obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objTreeModel.add(obj);
}
/**
* Adds a list of new TreeModel 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 addTreeModel(Collection coTreeModel)
{
if( coTreeModel==null )
return false;
java.util.Iterator it = coTreeModel.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 _objTreeModel.addAll(coTreeModel);
}
/**
* Removes an existing TreeModel object at the specified index.
* @return The removed object.
*/
public TreeModel removeTreeModel(int index)
{
return (TreeModel)_objTreeModel.remove(index);
}
/**
* Removes the specified TreeModel object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeTreeModel(TreeModel obj)
{
return _objTreeModel.remove(obj);
}
/**
* Clears all TreeModel objects from the list.
*/
public void clearTreeModelList()
{
_objTreeModel.clear();
}
/**
* Returns an array of AssociationModel objects. The length of the returned
* array is zero if the list of AssociationModel object is empty.
*/
public AssociationModel[] getAssociationModel()
{
return (AssociationModel[])_objAssociationModel.toArray(new AssociationModel[0]);
}
/**
* Replaces all existing AssociationModel objects with a new array of
* AssociationModel objects.
* @param objArray an array of AssociationModel objects.
*/
public void setAssociationModel(AssociationModel[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objAssociationModel.clear();
else
{
this._objAssociationModel = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the AssociationModel object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public AssociationModel getAssociationModel(int index)
{
return (AssociationModel)_objAssociationModel.get(index);
}
/**
* Replaces an existing AssociationModel object at the specified index with
* a new AssociationModel object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setAssociationModel(int index, AssociationModel obj)
{
if( obj == null )
removeAssociationModel(index);
else
{
_objAssociationModel.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of AssociationModel objects in the list.
*/
public int getAssociationModelCount()
{
return _objAssociationModel.size();
}
/**
* Returns <code>true</code> if there is no AssociationModel object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoAssociationModel()
{
return _objAssociationModel.size() == 0;
}
/**
* Returns a read-only list of AssociationModel objects.
*/
public List getAssociationModelList()
{
return Collections.unmodifiableList(_objAssociationModel);
}
/**
* Adds a new AssociationModel 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 addAssociationModel(AssociationModel obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objAssociationModel.add(obj);
}
/**
* Adds a list of new AssociationModel 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 addAssociationModel(Collection coAssociationModel)
{
if( coAssociationModel==null )
return false;
java.util.Iterator it = coAssociationModel.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 _objAssociationModel.addAll(coAssociationModel);
}
/**
* Removes an existing AssociationModel object at the specified index.
* @return The removed object.
*/
public AssociationModel removeAssociationModel(int index)
{
return (AssociationModel)_objAssociationModel.remove(index);
}
/**
* Removes the specified AssociationModel object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeAssociationModel(AssociationModel obj)
{
return _objAssociationModel.remove(obj);
}
/**
* Clears all AssociationModel objects from the list.
*/
public void clearAssociationModelList()
{
_objAssociationModel.clear();
}
/**
* Returns an array of SequenceModel objects. The length of the returned
* array is zero if the list of SequenceModel object is empty.
*/
public SequenceModel[] getSequenceModel()
{
return (SequenceModel[])_objSequenceModel.toArray(new SequenceModel[0]);
}
/**
* Replaces all existing SequenceModel objects with a new array of
* SequenceModel objects.
* @param objArray an array of SequenceModel objects.
*/
public void setSequenceModel(SequenceModel[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objSequenceModel.clear();
else
{
this._objSequenceModel = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the SequenceModel object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public SequenceModel getSequenceModel(int index)
{
return (SequenceModel)_objSequenceModel.get(index);
}
/**
* Replaces an existing SequenceModel object at the specified index with
* a new SequenceModel object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setSequenceModel(int index, SequenceModel obj)
{
if( obj == null )
removeSequenceModel(index);
else
{
_objSequenceModel.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of SequenceModel objects in the list.
*/
public int getSequenceModelCount()
{
return _objSequenceModel.size();
}
/**
* Returns <code>true</code> if there is no SequenceModel object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoSequenceModel()
{
return _objSequenceModel.size() == 0;
}
/**
* Returns a read-only list of SequenceModel objects.
*/
public List getSequenceModelList()
{
return Collections.unmodifiableList(_objSequenceModel);
}
/**
* Adds a new SequenceModel 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 addSequenceModel(SequenceModel obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objSequenceModel.add(obj);
}
/**
* Adds a list of new SequenceModel 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 addSequenceModel(Collection coSequenceModel)
{
if( coSequenceModel==null )
return false;
java.util.Iterator it = coSequenceModel.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 _objSequenceModel.addAll(coSequenceModel);
}
/**
* Removes an existing SequenceModel object at the specified index.
* @return The removed object.
*/
public SequenceModel removeSequenceModel(int index)
{
return (SequenceModel)_objSequenceModel.remove(index);
}
/**
* Removes the specified SequenceModel object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeSequenceModel(SequenceModel obj)
{
return _objSequenceModel.remove(obj);
}
/**
* Clears all SequenceModel objects from the list.
*/
public void clearSequenceModelList()
{
_objSequenceModel.clear();
}
/**
* Returns an array of ClusteringModel objects. The length of the returned
* array is zero if the list of ClusteringModel object is empty.
*/
public ClusteringModel[] getClusteringModel()
{
return (ClusteringModel[])_objClusteringModel.toArray(new ClusteringModel[0]);
}
/**
* Replaces all existing ClusteringModel objects with a new array of
* ClusteringModel objects.
* @param objArray an array of ClusteringModel objects.
*/
public void setClusteringModel(ClusteringModel[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objClusteringModel.clear();
else
{
this._objClusteringModel = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -