|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.uddi.Service
Service represents a UDDI service.
Field Summary |
Constructor Summary | |
Service()
Construct a Service with no initial values. |
|
Service(Service service)
|
|
Service(java.lang.String name)
Construct a Service with the specified name. |
Method Summary | |
void |
addBinding(Binding binding)
Add a binding. |
void |
addCategory(Category category)
Add a category. |
void |
addDescription(Description description)
Add the specified description. |
void |
addName(Name name)
|
boolean |
equals(java.lang.Object object)
|
Binding |
getBinding(java.lang.String bindingKey)
Return the binding with the specified key, or null if not found. |
java.lang.String[] |
getBindingKeys()
Return an array of my binding keys. |
Binding[] |
getBindings()
Return an array of my bindings. |
java.lang.String |
getBusinessKey()
Return my business key. |
Category[] |
getCategories()
Return an array of my categories. |
Category |
getCategoryWithName(java.lang.String name)
|
Description[] |
getDescriptions()
Return my descriptions. |
java.lang.String |
getName()
Return my name. |
Name[] |
getNames()
|
java.lang.String |
getServiceKey()
Return my service key. |
java.lang.String |
getUserName()
|
void |
read(IReader reader)
Restore myself from the specified reader. |
void |
removeBinding(Binding binding)
Remove a binding. |
void |
removeBinding(java.lang.String bindingKey)
Remove the binding with the specified key. |
void |
removeCategory(Category category)
Remove a category. |
void |
removeDescription(Description description)
Remove the specified description. |
void |
removeName(Name name)
|
void |
setBindings(Binding[] bindings)
Set my bindings. |
void |
setBusinessKey(java.lang.String businessKey)
Set my business key. |
void |
setCategories(Category[] categories)
Set my categories to the specified value. |
void |
setDescriptions(Description[] descriptions)
Set my descriptions. |
void |
setName(java.lang.String text)
|
void |
setNames(Name[] names)
|
void |
setServiceKey(java.lang.String serviceKey)
Set my service key. |
void |
setUserName(java.lang.String userName)
|
java.lang.String |
toString()
Return my description. |
void |
write(IWriter writer)
Write myself to the specified writer. |
void |
write(IWriter writer,
boolean includeBindings,
boolean includeUserName)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Service()
public Service(java.lang.String name)
name
- The initial name.public Service(Service service)
service
- Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object object)
object
-
public void setServiceKey(java.lang.String serviceKey)
serviceKey
- The new service key.public java.lang.String getServiceKey()
public Name[] getNames()
public void setNames(Name[] names)
names
- public void addName(Name name)
name
- public void removeName(Name name)
name
- public java.lang.String getName()
INamed
getName
in interface INamed
public void setName(java.lang.String text)
text
- public void setBusinessKey(java.lang.String businessKey)
businessKey
- The new business key.public java.lang.String getBusinessKey()
public void addBinding(Binding binding)
binding
- The binding to add.public void removeBinding(Binding binding)
binding
- The binding to remove.public void removeBinding(java.lang.String bindingKey)
bindingKey
- The key of the binding to remove.public Binding[] getBindings()
public java.lang.String[] getBindingKeys()
public Binding getBinding(java.lang.String bindingKey)
bindingKey
- The key of the binding to remove.public void setBindings(Binding[] bindings)
bindings
- The new array of bindings.public Description[] getDescriptions()
public void setDescriptions(Description[] descriptions)
descriptions
- The descriptions.public void addDescription(Description description)
description
- The description.public void removeDescription(Description description)
description
- The description.public void addCategory(Category category)
category
- The category to add.public void removeCategory(Category category)
category
- The category to remove.public Category[] getCategories()
getCategories
in interface ICategorized
public Category getCategoryWithName(java.lang.String name)
name
- public void setCategories(Category[] categories)
categories
- The new value.public void setUserName(java.lang.String userName)
userName
- public java.lang.String getUserName()
public void write(IWriter writer) throws java.io.IOException
write
in interface ISerializable
writer
- The IWriter
java.io.IOException
- If a serialization error occurs.public void write(IWriter writer, boolean includeBindings, boolean includeUserName) throws java.io.IOException
writer
- includeBindings
-
java.io.IOException
public void read(IReader reader) throws java.io.IOException
read
in interface ISerializable
reader
- The IReader
java.io.IOException
- If a deserialization error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |