public class Service extends Object implements oracle.fmwplatform.envspec.common.EntityWithId, oracle.fmwplatform.envspec.common.ContainerAware<Topology>
| Constructor and Description |
|---|
Service() |
| Modifier and Type | Method and Description |
|---|---|
Service |
addEndpoint(Endpoint endpoint) |
Endpoint |
getEndpointForId(String endpointId)
Return the endpoint that matches the id
|
<T extends Endpoint> |
getEndpointForId(String endpointId,
Class<T> clazzType)
Return the endpoint that matches the id and
the endpoint type
|
List<Endpoint> |
getEndpoints() |
String |
getId()
Returns the id used to reference this model object.
|
String |
getName() |
Topology |
getParent()
Returns the object that contains this entity
|
Service |
setEndpoints(List<Endpoint> endpoints)
Set the list of endpoints used to connect to the service
|
Service |
setId(String id)
Sets the id used to reference this model object.
|
Service |
setName(String name) |
Service |
setParent(Topology containerTopology)
Sets the container object that contains this.
|
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public String getId()
oracle.fmwplatform.envspec.common.EntityWithIdgetId in interface oracle.fmwplatform.envspec.common.EntityWithIdpublic Service setId(String id)
oracle.fmwplatform.envspec.common.EntityWithIdsetId in interface oracle.fmwplatform.envspec.common.EntityWithIdid - the id to be used when referencing this model objectpublic String getName()
public <T extends Endpoint> T getEndpointForId(String endpointId, Class<T> clazzType)
T - the class typeendpointId - to matchclazzType - type of endpointpublic Endpoint getEndpointForId(String endpointId)
endpointId - to matchpublic Service setEndpoints(List<Endpoint> endpoints)
endpoints - connection protocol listpublic Topology getParent()
oracle.fmwplatform.envspec.common.ContainerAwaregetParent in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>public Service setParent(Topology containerTopology)
oracle.fmwplatform.envspec.common.ContainerAwaresetParent in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>containerTopology - the parent containerpublic String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()