📄 sequencerule.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 SequenceRule class represents the element "SequenceRule" with the content
* model defined as follows:
* <p>
* <!ELEMENT SequenceRule (Extension*,AntecedentSequence,Delimiter,Time*,ConsequentSequence)><br>
*/
public class SequenceRule extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "SequenceRule";
/** Defines a numberOfSets attribute */
public com.borland.xml.toolkit.Attribute numberOfSets = new com.borland.xml.toolkit.Attribute("numberOfSets", "CDATA", "REQUIRED", "");
/** Defines a confidence attribute */
public com.borland.xml.toolkit.Attribute confidence = new com.borland.xml.toolkit.Attribute("confidence", "CDATA", "REQUIRED", "");
/** Defines a support attribute */
public com.borland.xml.toolkit.Attribute support = new com.borland.xml.toolkit.Attribute("support", "CDATA", "REQUIRED", "");
/** Defines a occurrence attribute */
public com.borland.xml.toolkit.Attribute occurrence = new com.borland.xml.toolkit.Attribute("occurrence", "CDATA", "REQUIRED", "");
/** Defines a id attribute */
public com.borland.xml.toolkit.Attribute id = new com.borland.xml.toolkit.Attribute("id", "CDATA", "REQUIRED", "");
/** Defines a list of Extension objects. */
protected ArrayList _objExtension = new ArrayList();
/** Defines a AntecedentSequence object */
protected AntecedentSequence _objAntecedentSequence;
/** Defines a Delimiter object */
protected Delimiter _objDelimiter;
/** Defines a list of Time objects. */
protected ArrayList _objTime = new ArrayList();
/** Defines a ConsequentSequence object */
protected ConsequentSequence _objConsequentSequence;
/**
* Creates an empty SequenceRule object
*/
public SequenceRule()
{
super();
}
/**
* Gets the value of "numberOfSets" attribute.
*/
public String getNumberOfSets()
{
return numberOfSets.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setNumberOfSets(String value_)
{
numberOfSets.setValue(value_ );
}
/**
* Gets the value of "confidence" attribute.
*/
public String getConfidence()
{
return confidence.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setConfidence(String value_)
{
confidence.setValue(value_ );
}
/**
* Gets the value of "support" attribute.
*/
public String getSupport()
{
return support.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setSupport(String value_)
{
support.setValue(value_ );
}
/**
* Gets the value of "occurrence" attribute.
*/
public String getOccurrence()
{
return occurrence.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setOccurrence(String value_)
{
occurrence.setValue(value_ );
}
/**
* Gets the value of "id" attribute.
*/
public String getId()
{
return id.getValue();
}
/**
* Replaces the existing attribute value with a new value.
* @param value New value.
*/
public void setId(String value_)
{
id.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();
}
/**
* Gets AntecedentSequence object.
*/
public AntecedentSequence getAntecedentSequence()
{
return _objAntecedentSequence;
}
/**
* Replaces the existing AntecedentSequence object with a new object.
* If you pass in a null value to this method, the AntecedentSequence object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setAntecedentSequence(AntecedentSequence obj)
{
this._objAntecedentSequence = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Gets Delimiter object.
*/
public Delimiter getDelimiter()
{
return _objDelimiter;
}
/**
* Replaces the existing Delimiter object with a new object.
* If you pass in a null value to this method, the Delimiter object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setDelimiter(Delimiter obj)
{
this._objDelimiter = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Returns an array of Time objects. The length of the returned
* array is zero if the list of Time object is empty.
*/
public Time[] getTime()
{
return (Time[])_objTime.toArray(new Time[0]);
}
/**
* Replaces all existing Time objects with a new array of
* Time objects.
* @param objArray an array of Time objects.
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -