public class APService extends java.lang.Object implements Concept
Constructor and Description |
---|
APService()
Default constructor.
|
APService(java.lang.String type,
java.lang.String[] addresses)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAddresses(java.lang.String address)
Add a service to the
addresses slot collection
of this object. |
void |
clearAllAddresses()
Remove all addresses from the
addresses slot
collection of this object. |
Iterator |
getAllAddresses()
Access all addresses from the
addresses slot
collection of this object. |
java.lang.String |
getName()
Retrieve the
name slot of this object. |
java.lang.String |
getType()
Retrieve the
type slot of this object. |
boolean |
removeAddresses(java.lang.String address)
Remove a service from the
addresses slot
collection of this object. |
void |
setName(java.lang.String n)
Set the
name slot of this object. |
void |
setType(java.lang.String t)
Set the
type slot of this object. |
java.lang.String |
toString()
Retrieve a string representation for this platform service
description.
|
public APService()
public APService(java.lang.String type, java.lang.String[] addresses)
public void setName(java.lang.String n)
name
slot of this object.n
- The string for the platform service name.public java.lang.String getName()
name
slot of this object.name
slot of this
platform service description, or null
if no value
was set.public void setType(java.lang.String t)
type
slot of this object.t
- The string for the platform service type.public java.lang.String getType()
type
slot of this object.type
slot of this
platform service description, or null
if no value
was set.public void addAddresses(java.lang.String address)
addresses
slot collection
of this object.a
- The address to add to the collection.public boolean removeAddresses(java.lang.String address)
addresses
slot
collection of this object.a
- The address to remove from the collection.public void clearAllAddresses()
addresses
slot
collection of this object.public Iterator getAllAddresses()
addresses
slot
collection of this object.public java.lang.String toString()
toString
in class java.lang.Object