Class EndpointDescriptionWriter
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
Endpoint description writer class for writing
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected classprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComplexProperty(String name, Object value) getMultiValueProperty(String key, Object value) protected StringgetValueType(Object value) protected EndpointDescriptionWriter.XmlPropertygetXmlProperty(String name, Object value) protected Writerprotected Writerprotected voidwriteEndpointDescription(int indentLevel, Writer writer, EndpointDescription endpointDescription) voidwriteEndpointDescription(Writer writer, EndpointDescription endpointDescription) writeEndpointDescription(EndpointDescription endpointDescription) voidwriteEndpointDescriptions(Writer writer, EndpointDescription[] endpointDescriptions) writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) protected voidwriteProperties(int indentLevel, Writer writer, EndpointDescription endpointDescription) protected voidwriteProperty(int indentLevel, Writer writer, String name, Object value) protected voidwriteUnknownProperty(int indentLevel, Writer writer, String name, Object value) protected voidwriteValueProperty(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
-