public class EndpointDescriptionWriter extends Object
EndpointDescriptions 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 write EndpointDescription instances to the format
specified by OSGi 4.2 section 122.8.| Modifier and Type | Class and 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 |
| Modifier and Type | Field and Description |
|---|---|
protected String |
indent |
protected List<String> |
xmlNames |
| Constructor and Description |
|---|
EndpointDescriptionWriter() |
EndpointDescriptionWriter(List<String> xmlNames) |
public Writer writeEndpointDescription(EndpointDescription endpointDescription) throws IOException
endpointDescription - the endpoint description to writeIOException - if endpoint descriptino cannot be writtenpublic Writer writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) throws IOException
endpointDescriptions - the endpoint descriptions to writeIOException - if problem writingpublic void writeEndpointDescription(Writer writer, EndpointDescription endpointDescription) throws IOException
writer - the writer to useendpointDescription - the endpointDescription to writeIOException - thrown if some problem writingpublic void writeEndpointDescriptions(Writer writer, EndpointDescription[] endpointDescriptions) throws IOException
IOExceptionprotected void writeEndpointDescription(int indentLevel,
Writer writer,
EndpointDescription endpointDescription)
throws IOException
IOExceptionprotected void writeProperties(int indentLevel,
Writer writer,
EndpointDescription endpointDescription)
throws IOException
IOExceptionprotected void writeProperty(int indentLevel,
Writer writer,
String name,
Object value)
throws IOException
IOExceptionprotected void writeUnknownProperty(int indentLevel,
Writer writer,
String name,
Object value)
protected EndpointDescriptionWriter.ComplexProperty getComplexProperty(String name, Object value)
protected EndpointDescriptionWriter.XmlProperty getXmlProperty(String name, Object value)
protected void writeValueProperty(int indentLevel,
String name,
String valueType,
Object value,
Writer writer)
throws IOException
IOExceptionprotected EndpointDescriptionWriter.MultiValueProperty getMultiValueProperty(String key, Object value)
protected Writer newLine(Writer writer) throws IOException
IOExceptionprotected Writer indent(int indentLevel, Writer writer) throws IOException
IOExceptionCopyright © 2004–2020 Eclipse Foundation. All rights reserved.