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.EntityWithId
getId
in interface oracle.fmwplatform.envspec.common.EntityWithId
public Service setId(String id)
oracle.fmwplatform.envspec.common.EntityWithId
setId
in interface oracle.fmwplatform.envspec.common.EntityWithId
id
- 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.ContainerAware
getParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<Topology>
public Service setParent(Topology containerTopology)
oracle.fmwplatform.envspec.common.ContainerAware
setParent
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()