Class EndpointDescriptionWriter
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
Endpoint description writer class for writing
EndpointDescription
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 write EndpointDescription
instances to the format
specified by OSGi 4.2 section 122.8.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
protected class
protected class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComplexProperty
(String name, Object value) getMultiValueProperty
(String key, Object value) protected String
getValueType
(Object value) protected EndpointDescriptionWriter.XmlProperty
getXmlProperty
(String name, Object value) protected Writer
protected Writer
protected void
writeEndpointDescription
(int indentLevel, Writer writer, EndpointDescription endpointDescription) void
writeEndpointDescription
(Writer writer, EndpointDescription endpointDescription) writeEndpointDescription
(EndpointDescription endpointDescription) void
writeEndpointDescriptions
(Writer writer, EndpointDescription[] endpointDescriptions) writeEndpointDescriptions
(EndpointDescription[] endpointDescriptions) protected void
writeProperties
(int indentLevel, Writer writer, EndpointDescription endpointDescription) protected void
writeProperty
(int indentLevel, Writer writer, String name, Object value) protected void
writeUnknownProperty
(int indentLevel, Writer writer, String name, Object value) protected void
writeValueProperty
(int indentLevel, String name, String valueType, Object value, Writer writer)
-
Field Details
-
indent
-
xmlNames
-
-
Constructor Details
-
EndpointDescriptionWriter
public EndpointDescriptionWriter() -
EndpointDescriptionWriter
-
-
Method Details
-
writeEndpointDescription
- 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
-
getComplexProperty
-
getXmlProperty
-
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) -
getValueType
-
newLine
- Throws:
IOException
-
indent
- Throws:
IOException
-