Class EndpointDescriptionWriter
- java.lang.Object
-
- org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
-
public class EndpointDescriptionWriter extends Object
Endpoint description writer class for writingEndpointDescription
s to the OSGi 4.2 Remote Service Admin Endpoint Description Extender Format (section 122.8 of OSGi 4.2 enterprise specification). This class may be used or extended to writeEndpointDescription
instances to the format specified by OSGi 4.2 section 122.8.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
EndpointDescriptionWriter.ArrayProperty
protected class
EndpointDescriptionWriter.ComplexProperty
protected class
EndpointDescriptionWriter.ListProperty
protected class
EndpointDescriptionWriter.MultiValueProperty
protected class
EndpointDescriptionWriter.SetProperty
protected class
EndpointDescriptionWriter.XmlProperty
-
Constructor Summary
Constructors Constructor Description EndpointDescriptionWriter()
EndpointDescriptionWriter(List<String> xmlNames)
-
Method Summary
-
-
-
Method Detail
-
writeEndpointDescription
public Writer writeEndpointDescription(EndpointDescription endpointDescription) throws IOException
- Parameters:
endpointDescription
- the endpoint description to write- Returns:
- Writer the writer used
- Throws:
IOException
- if endpoint descriptino cannot be written- Since:
- 4.2
-
writeEndpointDescriptions
public Writer writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) throws IOException
- Parameters:
endpointDescriptions
- the endpoint descriptions to write- Returns:
- Writer used to write descriptions
- Throws:
IOException
- if problem writing- Since:
- 4.2
-
writeEndpointDescription
public void writeEndpointDescription(Writer writer, EndpointDescription endpointDescription) throws IOException
- Parameters:
writer
- the writer to useendpointDescription
- the endpointDescription to write- Throws:
IOException
- thrown if some problem writing- Since:
- 4.2
-
writeEndpointDescriptions
public void writeEndpointDescriptions(Writer writer, EndpointDescription[] endpointDescriptions) throws IOException
- Throws:
IOException
-
writeEndpointDescription
protected void writeEndpointDescription(int indentLevel, Writer writer, EndpointDescription endpointDescription) throws IOException
- Throws:
IOException
-
writeProperties
protected void writeProperties(int indentLevel, Writer writer, EndpointDescription endpointDescription) throws IOException
- Throws:
IOException
-
writeProperty
protected void writeProperty(int indentLevel, Writer writer, String name, Object value) throws IOException
- Throws:
IOException
-
writeUnknownProperty
protected void writeUnknownProperty(int indentLevel, Writer writer, String name, Object value)
-
getComplexProperty
protected EndpointDescriptionWriter.ComplexProperty getComplexProperty(String name, Object value)
-
getXmlProperty
protected EndpointDescriptionWriter.XmlProperty getXmlProperty(String name, Object value)
-
writeValueProperty
protected void writeValueProperty(int indentLevel, String name, String valueType, Object value, Writer writer) throws IOException
- Throws:
IOException
-
getMultiValueProperty
protected EndpointDescriptionWriter.MultiValueProperty getMultiValueProperty(String key, Object value)
-
newLine
protected Writer newLine(Writer writer) throws IOException
- Throws:
IOException
-
indent
protected Writer indent(int indentLevel, Writer writer) throws IOException
- Throws:
IOException
-
-