public class Service extends Object implements Serializable
Constructor and Description |
---|
Service() |
Service(String name,
String className,
List<Attribute> attributes,
List<Invoke> invokes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute vAttribute) |
void |
addAttribute(int index,
Attribute vAttribute) |
void |
addInvoke(int index,
Invoke vInvoke) |
void |
addInvoke(Invoke vInvoke) |
Enumeration<Attribute> |
enumerateAttribute()
Method enumerateAttribute.
|
Enumeration<Invoke> |
enumerateInvoke()
Method enumerateInvoke.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Attribute[] |
getAttribute()
Method getAttribute.Returns the contents of the collection in an Array.
|
Attribute |
getAttribute(int index)
Method getAttribute.
|
List<Attribute> |
getAttributeCollection()
Method getAttributeCollection.Returns a reference to '_attributeList'.
|
int |
getAttributeCount()
Method getAttributeCount.
|
String |
getClassName()
Returns the value of field 'className'.
|
Invoke[] |
getInvoke()
Method getInvoke.Returns the contents of the collection in an Array.
|
Invoke |
getInvoke(int index)
Method getInvoke.
|
List<Invoke> |
getInvokeCollection()
Method getInvokeCollection.Returns a reference to '_invokeList'.
|
int |
getInvokeCount()
Method getInvokeCount.
|
String |
getName()
Returns the value of field 'name'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
Boolean |
isEnabled()
Returns the value of field 'enabled'.
|
Iterator<Attribute> |
iterateAttribute()
Method iterateAttribute.
|
Iterator<Invoke> |
iterateInvoke()
Method iterateInvoke.
|
void |
marshal(Writer out) |
void |
removeAllAttribute() |
void |
removeAllInvoke() |
boolean |
removeAttribute(Attribute vAttribute)
Method removeAttribute.
|
Attribute |
removeAttributeAt(int index)
Method removeAttributeAt.
|
boolean |
removeInvoke(Invoke vInvoke)
Method removeInvoke.
|
Invoke |
removeInvokeAt(int index)
Method removeInvokeAt.
|
void |
setAttribute(Attribute[] vAttributeArray) |
void |
setAttribute(int index,
Attribute vAttribute) |
void |
setAttribute(List<Attribute> vAttributeList)
Sets the value of '_attributeList' by copying the given Vector.
|
void |
setClassName(String className)
Sets the value of field 'className'.
|
void |
setEnabled(Boolean enabled)
Sets the value of field 'enabled'.
|
void |
setInvoke(int index,
Invoke vInvoke) |
void |
setInvoke(Invoke[] vInvokeArray) |
void |
setInvoke(List<Invoke> vInvokeList)
Sets the value of '_invokeList' by copying the given Vector.
|
void |
setName(String name)
Sets the value of field 'name'.
|
public void addAttribute(Attribute vAttribute) throws IndexOutOfBoundsException
vAttribute
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addAttribute(int index, Attribute vAttribute) throws IndexOutOfBoundsException
index
- vAttribute
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addInvoke(Invoke vInvoke) throws IndexOutOfBoundsException
vInvoke
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addInvoke(int index, Invoke vInvoke) throws IndexOutOfBoundsException
index
- vInvoke
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Attribute> enumerateAttribute()
public Enumeration<Invoke> enumerateInvoke()
public boolean equals(Object obj)
public Attribute getAttribute(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Attribute[] getAttribute()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Attribute> getAttributeCollection()
public int getAttributeCount()
public String getClassName()
public Invoke getInvoke(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Invoke[] getInvoke()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Invoke> getInvokeCollection()
public int getInvokeCount()
public String getName()
public Boolean isEnabled()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Attribute> iterateAttribute()
public Iterator<Invoke> iterateInvoke()
public void marshal(Writer out)
out
- public void removeAllAttribute()
public void removeAllInvoke()
public boolean removeAttribute(Attribute vAttribute)
vAttribute
- public Attribute removeAttributeAt(int index)
index
- public boolean removeInvoke(Invoke vInvoke)
vInvoke
- public Invoke removeInvokeAt(int index)
index
- public void setAttribute(int index, Attribute vAttribute) throws IndexOutOfBoundsException
index
- vAttribute
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setAttribute(Attribute[] vAttributeArray)
vAttributeArray
- public void setAttribute(List<Attribute> vAttributeList)
vAttributeList
- the Vector to copy.public void setClassName(String className)
className
- the value of field 'className'.public void setInvoke(int index, Invoke vInvoke) throws IndexOutOfBoundsException
index
- vInvoke
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setInvoke(Invoke[] vInvokeArray)
vInvokeArray
- public void setInvoke(List<Invoke> vInvokeList)
vInvokeList
- the Vector to copy.public void setName(String name)
name
- the value of field 'name'.public void setEnabled(Boolean enabled)
name
- the value of field 'enabled'.Copyright © 2017. All rights reserved.