📄 associationmodel.java
字号:
/**
* Clears all Extension objects from the list.
*/
public void clearExtensionList()
{
_objExtension.clear();
}
/**
* Gets MiningSchema object.
*/
public MiningSchema getMiningSchema()
{
return _objMiningSchema;
}
/**
* Replaces the existing MiningSchema object with a new object.
* If you pass in a null value to this method, the MiningSchema object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setMiningSchema(MiningSchema obj)
{
this._objMiningSchema = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Returns an array of Item objects. The length of the returned
* array is zero if the list of Item object is empty.
*/
public Item[] getItem()
{
return (Item[])_objItem.toArray(new Item[0]);
}
/**
* Replaces all existing Item objects with a new array of
* Item objects.
* @param objArray an array of Item objects.
*/
public void setItem(Item[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objItem.clear();
else
{
this._objItem = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the Item object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public Item getItem(int index)
{
return (Item)_objItem.get(index);
}
/**
* Replaces an existing Item object at the specified index with
* a new Item object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setItem(int index, Item obj)
{
if( obj == null )
removeItem(index);
else
{
_objItem.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of Item objects in the list.
*/
public int getItemCount()
{
return _objItem.size();
}
/**
* Returns <code>true</code> if there is no Item object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoItem()
{
return _objItem.size() == 0;
}
/**
* Returns a read-only list of Item objects.
*/
public List getItemList()
{
return Collections.unmodifiableList(_objItem);
}
/**
* Adds a new Item 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 addItem(Item obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objItem.add(obj);
}
/**
* Adds a list of new Item 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 addItem(Collection coItem)
{
if( coItem==null )
return false;
java.util.Iterator it = coItem.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 _objItem.addAll(coItem);
}
/**
* Removes an existing Item object at the specified index.
* @return The removed object.
*/
public Item removeItem(int index)
{
return (Item)_objItem.remove(index);
}
/**
* Removes the specified Item object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeItem(Item obj)
{
return _objItem.remove(obj);
}
/**
* Clears all Item objects from the list.
*/
public void clearItemList()
{
_objItem.clear();
}
/**
* Returns an array of Itemset objects. The length of the returned
* array is zero if the list of Itemset object is empty.
*/
public Itemset[] getItemset()
{
return (Itemset[])_objItemset.toArray(new Itemset[0]);
}
/**
* Replaces all existing Itemset objects with a new array of
* Itemset objects.
* @param objArray an array of Itemset objects.
*/
public void setItemset(Itemset[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objItemset.clear();
else
{
this._objItemset = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the Itemset object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public Itemset getItemset(int index)
{
return (Itemset)_objItemset.get(index);
}
/**
* Replaces an existing Itemset object at the specified index with
* a new Itemset object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setItemset(int index, Itemset obj)
{
if( obj == null )
removeItemset(index);
else
{
_objItemset.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of Itemset objects in the list.
*/
public int getItemsetCount()
{
return _objItemset.size();
}
/**
* Returns <code>true</code> if there is no Itemset object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoItemset()
{
return _objItemset.size() == 0;
}
/**
* Returns a read-only list of Itemset objects.
*/
public List getItemsetList()
{
return Collections.unmodifiableList(_objItemset);
}
/**
* Adds a new Itemset 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 addItemset(Itemset obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objItemset.add(obj);
}
/**
* Adds a list of new Itemset 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 addItemset(Collection coItemset)
{
if( coItemset==null )
return false;
java.util.Iterator it = coItemset.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 _objItemset.addAll(coItemset);
}
/**
* Removes an existing Itemset object at the specified index.
* @return The removed object.
*/
public Itemset removeItemset(int index)
{
return (Itemset)_objItemset.remove(index);
}
/**
* Removes the specified Itemset object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeItemset(Itemset obj)
{
return _objItemset.remove(obj);
}
/**
* Clears all Itemset objects from the list.
*/
public void clearItemsetList()
{
_objItemset.clear();
}
/**
* Returns an array of AssociationRule objects. The length of the returned
* array is zero if the list of AssociationRule object is empty.
*/
public AssociationRule[] getAssociationRule()
{
return (AssociationRule[])_objAssociationRule.toArray(new AssociationRule[0]);
}
/**
* Replaces all existing AssociationRule objects with a new array of
* AssociationRule objects.
* @param objArray an array of AssociationRule objects.
*/
public void setAssociationRule(AssociationRule[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objAssociationRule.clear();
else
{
this._objAssociationRule = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the AssociationRule object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public AssociationRule getAssociationRule(int index)
{
return (AssociationRule)_objAssociationRule.get(index);
}
/**
* Replaces an existing AssociationRule object at the specified index with
* a new AssociationRule object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setAssociationRule(int index, AssociationRule obj)
{
if( obj == null )
removeAssociationRule(index);
else
{
_objAssociationRule.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of AssociationRule objects in the list.
*/
public int getAssociationRuleCount()
{
return _objAssociationRule.size();
}
/**
* Returns <code>true</code> if there is no AssociationRule object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoAssociationRule()
{
return _objAssociationRule.size() == 0;
}
/**
* Returns a read-only list of AssociationRule objects.
*/
public List getAssociationRuleList()
{
return Collections.unmodifiableList(_objAssociationRule);
}
/**
* Adds a new AssociationRule 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 addAssociationRule(AssociationRule obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objAssociationRule.add(obj);
}
/**
* Adds a list of new AssociationRule 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 addAssociationRule(Collection coAssociationRule)
{
if( coAssociationRule==null )
return false;
java.util.Iterator it = coAssociationRule.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 _objAssociationRule.addAll(coAssociationRule);
}
/**
* Removes an existing AssociationRule object at the specified index.
* @return The removed object.
*/
public AssociationRule removeAssociationRule(int index)
{
return (AssociationRule)_objAssociationRule.remove(index);
}
/**
* Removes the specified AssociationRule object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeAssociationRule(AssociationRule obj)
{
return _objAssociationRule.remove(obj);
}
/**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -