public class ObjectStateHolderVector extendsimplements java.io.Serializable
ObjectStateHolder
.
// Init the CIs
hostOSH =...
ipOSH =...
link =...
// Add them to the vector
vec.add(hostOSH)
vec.add(ipOSH)
vec.add(link)
return vec
ObjectStateHolder
Constructor and Description |
---|
ObjectStateHolderVector()
Default constructor
|
ObjectStateHolderVector(Element element) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
ObjectStateHolder element)
Inserts the specified element at the specified position in this vector.
|
void |
add(ObjectStateHolder element)
Appends the specified element to the end of this vector.
|
void |
addAll(ObjectStateHolderVector elements)
Appends a vector of elements to the end of this vector.
|
void |
clear() |
boolean |
contains(CmdbDataID objectID) |
java.lang.Object |
deepClone()
Returns a clone of this vector.
|
ObjectStateHolder |
get(int index)
Returns the element at the specified position in this vector.
|
CmdbObjectIds |
getCmdbObjectIds()
Returns the vector of object IDs.
|
CmdbIdsVector |
getIdVector() |
ObjectStateHolderVector |
getSubVector(int from,
int to) |
int |
indexOf(ObjectStateHolder element)
Returns the position of the first occurence of the specified argument.
|
static ObjectStateHolderVector |
parseXml(byte[] xmlBuffer) |
static ObjectStateHolderVector |
parseXml(java.io.InputStream xmlStream) |
static ObjectStateHolderVector |
parseXml(java.io.InputStream xmlStream,
boolean isZipped) |
static ObjectStateHolderVector |
parseXml(java.lang.String xmlString) |
static ObjectStateHolderVector |
parseXml(java.lang.String xmlString,
boolean isZipped) |
ObjectStateHolder |
remove(int index)
Removes the element at the specified position in this vector.
|
boolean |
remove(ObjectStateHolder element)
Removes the first occurrence of the specified element in this vector.
|
ObjectStateHolder |
set(int index,
ObjectStateHolder element)
Replaces the element at the specified position in this vector with the
specified element.
|
void |
sort(java.util.Comparator<? super ObjectStateHolder> comparator)
Sorts the specified vector according to the order defined by the specified comparator.
|
void |
sort(java.lang.String attrName) |
void |
sort(java.lang.String attrName,
boolean ascendent) |
void |
sort(StringVector attrs,
boolean ascendent)
Sorts the specified vector.
|
ObjectStateHolderVector |
subList(int indexFrom,
int indexTo) |
Element |
toXml() |
java.lang.String |
toXmlString() |
java.lang.String |
toXmlString(boolean withEncoding) |
java.lang.StringBuffer |
toXmlString(java.lang.StringBuffer xml,
boolean withEncoding) |
byte[] |
toZip() |
byte[] |
toZipBySerialization() |
java.lang.String |
toZipString() |
public ObjectStateHolderVector()
public ObjectStateHolderVector(Element element) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public static ObjectStateHolderVector parseXml(java.io.InputStream xmlStream, boolean isZipped) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public static ObjectStateHolderVector parseXml(java.io.InputStream xmlStream) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public static ObjectStateHolderVector parseXml(java.lang.String xmlString, boolean isZipped) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public static ObjectStateHolderVector parseXml(java.lang.String xmlString) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public static ObjectStateHolderVector parseXml(byte[] xmlBuffer) throws AppilogIllegalParameterException
AppilogIllegalParameterException
public java.lang.Object deepClone()
public void add(ObjectStateHolder element)
element
- element to be appended to this vector.public void addAll(ObjectStateHolderVector elements)
elements
- element to be appended to this vector.public void add(int index, ObjectStateHolder element)
index
- The position at which the element is to be insertedelement
- The element to be insertedjava.lang.ArrayIndexOutOfBoundsException
- index is out of range
(index < 0 || index > size()).public ObjectStateHolder set(int index, ObjectStateHolder element)
index
- The index of element to replaceelement
- The element to be stored at the specified positionjava.lang.ArrayIndexOutOfBoundsException
- index out of range
(index < 0 || index >= size()).java.lang.IllegalArgumentException
- fromIndex > toIndex.public ObjectStateHolder remove(int index)
index
- the index of the element to removed.java.lang.ArrayIndexOutOfBoundsException
- index out of range (index
< 0 || index >= size()).public boolean remove(ObjectStateHolder element)
(o==null ? get(i)==null : o.equals(get(i)))
,if such
an element exists.element
- The element to be removed from this vector, if presentpublic boolean contains(CmdbDataID objectID)
public int indexOf(ObjectStateHolder element)
BaseVector#equals(java.lang.Object)
method.element
- An ObjectStateHolder-1
if the object is not found.Object.equals(Object)
public ObjectStateHolder get(int index)
index
- The index of the element to returnjava.lang.ArrayIndexOutOfBoundsException
- if the index is out of rangepublic ObjectStateHolderVector getSubVector(int from, int to)
public CmdbIdsVector getIdVector()
public CmdbObjectIds getCmdbObjectIds()
public Element toXml()
public byte[] toZip() throws AppilogIllegalParameterException, java.io.IOException
AppilogIllegalParameterException
java.io.IOException
public byte[] toZipBySerialization() throws java.io.IOException
java.io.IOException
public java.lang.String toZipString() throws AppilogIllegalParameterException, java.io.IOException
AppilogIllegalParameterException
java.io.IOException
public void sort(java.util.Comparator<? super ObjectStateHolder> comparator)
comparator
- The comparator to determine the order of the list. A
null value indicates that the elements' natural
ordering should be used.java.lang.ClassCastException
- if the list contains elements that are not
mutually comparable using the specified comparator.java.lang.UnsupportedOperationException
- if the specified list's
list-iterator does not support the set operation.public void sort(StringVector attrs, boolean ascendent)
ascendent
- true for ascending sort. false
for descending sort.
attrs
- the vector to sortpublic void sort(java.lang.String attrName, boolean ascendent)
public void sort(java.lang.String attrName)
public ObjectStateHolderVector subList(int indexFrom, int indexTo)
public java.lang.String toXmlString()
public java.lang.String toXmlString(boolean withEncoding)
public java.lang.StringBuffer toXmlString(java.lang.StringBuffer xml, boolean withEncoding)
public void clear()
Documentation Feedback
Copyright 2012 Micro Focus or one of its affiliates.