Class EndpointDescriptionWriter
- java.lang.Object
-
- org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
-
public class EndpointDescriptionWriter extends java.lang.ObjectEndpoint 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 Summary
Nested Classes Modifier and Type Class Description protected classEndpointDescriptionWriter.ArrayPropertyprotected classEndpointDescriptionWriter.ComplexPropertyprotected classEndpointDescriptionWriter.ListPropertyprotected classEndpointDescriptionWriter.MultiValuePropertyprotected classEndpointDescriptionWriter.SetPropertyprotected classEndpointDescriptionWriter.XmlProperty
-
Constructor Summary
Constructors Constructor Description EndpointDescriptionWriter()EndpointDescriptionWriter(java.util.List<java.lang.String> xmlNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EndpointDescriptionWriter.ComplexPropertygetComplexProperty(java.lang.String name, java.lang.Object value)protected EndpointDescriptionWriter.MultiValuePropertygetMultiValueProperty(java.lang.String key, java.lang.Object value)protected java.lang.StringgetValueType(java.lang.Object value)protected EndpointDescriptionWriter.XmlPropertygetXmlProperty(java.lang.String name, java.lang.Object value)protected java.io.Writerindent(int indentLevel, java.io.Writer writer)protected java.io.WriternewLine(java.io.Writer writer)protected voidwriteEndpointDescription(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription)voidwriteEndpointDescription(java.io.Writer writer, EndpointDescription endpointDescription)java.io.WriterwriteEndpointDescription(EndpointDescription endpointDescription)voidwriteEndpointDescriptions(java.io.Writer writer, EndpointDescription[] endpointDescriptions)java.io.WriterwriteEndpointDescriptions(EndpointDescription[] endpointDescriptions)protected voidwriteProperties(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription)protected voidwriteProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value)protected voidwriteUnknownProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value)protected voidwriteValueProperty(int indentLevel, java.lang.String name, java.lang.String valueType, java.lang.Object value, java.io.Writer writer)
-
-
-
Method Detail
-
writeEndpointDescription
public java.io.Writer writeEndpointDescription(EndpointDescription endpointDescription) throws java.io.IOException
- Parameters:
endpointDescription- the endpoint description to write- Returns:
- Writer the writer used
- Throws:
java.io.IOException- if endpoint descriptino cannot be written- Since:
- 4.2
-
writeEndpointDescriptions
public java.io.Writer writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) throws java.io.IOException
- Parameters:
endpointDescriptions- the endpoint descriptions to write- Returns:
- Writer used to write descriptions
- Throws:
java.io.IOException- if problem writing- Since:
- 4.2
-
writeEndpointDescription
public void writeEndpointDescription(java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException- Parameters:
writer- the writer to useendpointDescription- the endpointDescription to write- Throws:
java.io.IOException- thrown if some problem writing- Since:
- 4.2
-
writeEndpointDescriptions
public void writeEndpointDescriptions(java.io.Writer writer, EndpointDescription[] endpointDescriptions) throws java.io.IOException- Throws:
java.io.IOException
-
writeEndpointDescription
protected void writeEndpointDescription(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException- Throws:
java.io.IOException
-
writeProperties
protected void writeProperties(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException- Throws:
java.io.IOException
-
writeProperty
protected void writeProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
writeUnknownProperty
protected void writeUnknownProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value)
-
getComplexProperty
protected EndpointDescriptionWriter.ComplexProperty getComplexProperty(java.lang.String name, java.lang.Object value)
-
getXmlProperty
protected EndpointDescriptionWriter.XmlProperty getXmlProperty(java.lang.String name, java.lang.Object value)
-
writeValueProperty
protected void writeValueProperty(int indentLevel, java.lang.String name, java.lang.String valueType, java.lang.Object value, java.io.Writer writer) throws java.io.IOException- Throws:
java.io.IOException
-
getMultiValueProperty
protected EndpointDescriptionWriter.MultiValueProperty getMultiValueProperty(java.lang.String key, java.lang.Object value)
-
getValueType
protected java.lang.String getValueType(java.lang.Object value)
-
newLine
protected java.io.Writer newLine(java.io.Writer writer) throws java.io.IOException- Throws:
java.io.IOException
-
indent
protected java.io.Writer indent(int indentLevel, java.io.Writer writer) throws java.io.IOException- Throws:
java.io.IOException
-
-