Package com.bea.wcp.diameter.sh
Class RepositoryData
java.lang.Object
com.bea.wcp.diameter.sh.RepositoryData
Represents Sh repository data. Can be used to parse repository data from
a Document object as well as create new repository data.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryData(String serviceIndication) Creates a new empty RepositoryData for the specified service indication.RepositoryData(Document doc) Parse RepositoryData from the specified profile document. -
Method Summary
Modifier and TypeMethodDescriptionReturns this repository data as an XML Document.intReturns the sequence number for this repository data.Returns the Element representing this repository data's service data.Returns the service indication for this repository data.voidRemoves the service data for this repository data.voidsetServiceData(Element newData) Sets the service data for this repository data.toString()
-
Constructor Details
-
RepositoryData
Creates a new empty RepositoryData for the specified service indication. The RepositoryData will have a sequence number of 0 and contain no service data.- Parameters:
serviceIndication- the service indication string
-
RepositoryData
Parse RepositoryData from the specified profile document.- Parameters:
doc- the profile XML document
-
-
Method Details
-
getDocument
Returns this repository data as an XML Document.- Returns:
- the repository data document
-
getServiceIndication
Returns the service indication for this repository data.- Returns:
- the service indication
-
getSequenceNumber
public int getSequenceNumber()Returns the sequence number for this repository data.- Returns:
- the sequence number
-
getServiceData
Returns the Element representing this repository data's service data.- Returns:
- the service data
-
setServiceData
Sets the service data for this repository data. The sequence number will be automatically incremented if the service data has been updated.- Parameters:
newData- the new service data
-
removeServiceData
public void removeServiceData()Removes the service data for this repository data. This can be used to remove existing repository data, as the data will be removed on the HSS if it receives a PUR with no service data. The sequence number is automatically incremented. -
toString
-