Class EndpointDescriptionWriter
- java.lang.Object
- 
- org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
 
- 
 public class EndpointDescriptionWriter extends Object Endpoint description writer class for writingEndpointDescriptions 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 writeEndpointDescriptioninstances to the format specified by OSGi 4.2 section 122.8.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classEndpointDescriptionWriter.ArrayPropertyprotected classEndpointDescriptionWriter.ComplexPropertyprotected classEndpointDescriptionWriter.ListPropertyprotected classEndpointDescriptionWriter.MultiValuePropertyprotected classEndpointDescriptionWriter.SetPropertyprotected classEndpointDescriptionWriter.XmlProperty
 - 
Constructor SummaryConstructors Constructor Description EndpointDescriptionWriter()EndpointDescriptionWriter(List<String> xmlNames)
 - 
Method Summary
 
- 
- 
- 
Method Detail- 
writeEndpointDescriptionpublic 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
 
 - 
writeEndpointDescriptionspublic 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
 
 - 
writeEndpointDescriptionpublic void writeEndpointDescription(Writer writer, EndpointDescription endpointDescription) throws IOException - Parameters:
- writer- the writer to use
- endpointDescription- the endpointDescription to write
- Throws:
- IOException- thrown if some problem writing
- Since:
- 4.2
 
 - 
writeEndpointDescriptionspublic void writeEndpointDescriptions(Writer writer, EndpointDescription[] endpointDescriptions) throws IOException - Throws:
- IOException
 
 - 
writeEndpointDescriptionprotected void writeEndpointDescription(int indentLevel, Writer writer, EndpointDescription endpointDescription) throws IOException- Throws:
- IOException
 
 - 
writePropertiesprotected void writeProperties(int indentLevel, Writer writer, EndpointDescription endpointDescription) throws IOException- Throws:
- IOException
 
 - 
writePropertyprotected void writeProperty(int indentLevel, Writer writer, String name, Object value) throws IOException- Throws:
- IOException
 
 - 
writeUnknownPropertyprotected void writeUnknownProperty(int indentLevel, Writer writer, String name, Object value)
 - 
getComplexPropertyprotected EndpointDescriptionWriter.ComplexProperty getComplexProperty(String name, Object value) 
 - 
getXmlPropertyprotected EndpointDescriptionWriter.XmlProperty getXmlProperty(String name, Object value) 
 - 
writeValuePropertyprotected void writeValueProperty(int indentLevel, String name, String valueType, Object value, Writer writer) throws IOException- Throws:
- IOException
 
 - 
getMultiValuePropertyprotected EndpointDescriptionWriter.MultiValueProperty getMultiValueProperty(String key, Object value) 
 - 
newLineprotected Writer newLine(Writer writer) throws IOException - Throws:
- IOException
 
 - 
indentprotected Writer indent(int indentLevel, Writer writer) throws IOException - Throws:
- IOException
 
 
- 
 
-