📄 sequence.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 Sequence class represents the element "Sequence" with the content
* model defined as follows:
* <p>
* <!ELEMENT Sequence (SetReference,(Delimiter,SetReference)*)><br>
*/
public class Sequence extends com.borland.xml.toolkit.XmlObject
{
/** xml tag name of this element. */
public static String _tagName = "Sequence";
/** Defines a numberOfSets attribute */
public com.borland.xml.toolkit.Attribute numberOfSets = new com.borland.xml.toolkit.Attribute("numberOfSets", "CDATA", "IMPLIED", "");
/** Defines a support attribute */
public com.borland.xml.toolkit.Attribute support = new com.borland.xml.toolkit.Attribute("support", "CDATA", "IMPLIED", "");
/** Defines a occurrence attribute */
public com.borland.xml.toolkit.Attribute occurrence = new com.borland.xml.toolkit.Attribute("occurrence", "CDATA", "IMPLIED", "");
/** Defines a id attribute */
public com.borland.xml.toolkit.Attribute id = new com.borland.xml.toolkit.Attribute("id", "CDATA", "REQUIRED", "");
/** Defines a SetReference object */
protected SetReference _objSetReference;
/** Defines a list of Delimiter objects. */
protected ArrayList _objDelimiter = new ArrayList();
/** Defines a list of SetReference objects. */
protected ArrayList _objSetReference1 = new ArrayList();
/**
* Creates an empty Sequence object
*/
public Sequence()
{
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 "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_ );
}
/**
* Gets SetReference object.
*/
public SetReference getSetReference()
{
return _objSetReference;
}
/**
* Replaces the existing SetReference object with a new object.
* If you pass in a null value to this method, the SetReference object is
* cleared and will not be marshaled.
* @param obj A new object.
*/
public void setSetReference(SetReference obj)
{
this._objSetReference = obj;
if( obj == null )
return;
obj._setParent(this);
}
/**
* Returns an array of Delimiter objects. The length of the returned
* array is zero if the list of Delimiter object is empty.
*/
public Delimiter[] getDelimiter()
{
return (Delimiter[])_objDelimiter.toArray(new Delimiter[0]);
}
/**
* Replaces all existing Delimiter objects with a new array of
* Delimiter objects.
* @param objArray an array of Delimiter objects.
*/
public void setDelimiter(Delimiter[] objArray)
{
if( objArray == null || objArray.length == 0 )
this._objDelimiter.clear();
else
{
this._objDelimiter = new ArrayList(Arrays.asList(objArray));
for( int i=0; i<objArray.length; i++ )
{
if( objArray[i] != null )
objArray[i]._setParent(this);
}
}
}
/**
* Gets the Delimiter object at the specified index.
* @param index index of the returned object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public Delimiter getDelimiter(int index)
{
return (Delimiter)_objDelimiter.get(index);
}
/**
* Replaces an existing Delimiter object at the specified index with
* a new Delimiter object.
* @param index index of replaced object.
* @throws IndexOutOfBoundsException if index is out of range.
*/
public void setDelimiter(int index, Delimiter obj)
{
if( obj == null )
removeDelimiter(index);
else
{
_objDelimiter.set(index, obj);
obj._setParent(this);
}
}
/**
* Returns the number of Delimiter objects in the list.
*/
public int getDelimiterCount()
{
return _objDelimiter.size();
}
/**
* Returns <code>true</code> if there is no Delimiter object in the list; otherwise,
* the method returns <code>false</code>.
*/
public boolean isNoDelimiter()
{
return _objDelimiter.size() == 0;
}
/**
* Returns a read-only list of Delimiter objects.
*/
public List getDelimiterList()
{
return Collections.unmodifiableList(_objDelimiter);
}
/**
* Adds a new Delimiter 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 addDelimiter(Delimiter obj)
{
if( obj==null )
return false;
obj._setParent(this);
return _objDelimiter.add(obj);
}
/**
* Adds a list of new Delimiter 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 addDelimiter(Collection coDelimiter)
{
if( coDelimiter==null )
return false;
java.util.Iterator it = coDelimiter.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 _objDelimiter.addAll(coDelimiter);
}
/**
* Removes an existing Delimiter object at the specified index.
* @return The removed object.
*/
public Delimiter removeDelimiter(int index)
{
return (Delimiter)_objDelimiter.remove(index);
}
/**
* Removes the specified Delimiter object.
* @return <code>true</code> if this list contains the object; otherwise,
* the method returns <code>false</code>.
*/
public boolean removeDelimiter(Delimiter obj)
{
return _objDelimiter.remove(obj);
}
/**
* Clears all Delimiter objects from the list.
*/
public void clearDelimiterList()
{
_objDelimiter.clear();
}
/**
* Returns an array of SetReference objects. The length of the returned
* array is zero if the list of SetReference object is empty.
*/
public SetReference[] getSetReference1()
{
return (SetReference[])_objSetReference1.toArray(new SetReference[0]);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -