org.eclipse.ecf.osgi.services.remoteserviceadmin
Class EndpointDescriptionWriter
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.EndpointDescriptionWriter
public class EndpointDescriptionWriter
- extends java.lang.Object
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.
Field Summary |
protected java.lang.String |
indent
|
protected java.util.List<java.lang.String> |
xmlNames
|
Method Summary |
protected EndpointDescriptionWriter.ComplexProperty |
getComplexProperty(java.lang.String name,
java.lang.Object value)
|
protected EndpointDescriptionWriter.MultiValueProperty |
getMultiValueProperty(java.lang.String key,
java.lang.Object value)
|
protected java.lang.String |
getValueType(java.lang.Object value)
|
protected EndpointDescriptionWriter.XmlProperty |
getXmlProperty(java.lang.String name,
java.lang.Object value)
|
protected java.io.Writer |
indent(int indentLevel,
java.io.Writer writer)
|
protected java.io.Writer |
newLine(java.io.Writer writer)
|
protected void |
writeEndpointDescription(int indentLevel,
java.io.Writer writer,
org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
|
void |
writeEndpointDescriptions(java.io.Writer writer,
org.osgi.service.remoteserviceadmin.EndpointDescription[] endpointDescriptions)
|
protected void |
writeProperties(int indentLevel,
java.io.Writer writer,
org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
|
protected void |
writeProperty(int indentLevel,
java.io.Writer writer,
java.lang.String name,
java.lang.Object value)
|
protected void |
writeUnknownProperty(int indentLevel,
java.io.Writer writer,
java.lang.String name,
java.lang.Object value)
|
protected void |
writeValueProperty(int indentLevel,
java.lang.String name,
java.lang.String valueType,
java.lang.Object value,
java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indent
protected java.lang.String indent
xmlNames
protected java.util.List<java.lang.String> xmlNames
EndpointDescriptionWriter
public EndpointDescriptionWriter()
EndpointDescriptionWriter
public EndpointDescriptionWriter(java.util.List<java.lang.String> xmlNames)
writeEndpointDescriptions
public void writeEndpointDescriptions(java.io.Writer writer,
org.osgi.service.remoteserviceadmin.EndpointDescription[] endpointDescriptions)
throws java.io.IOException
- Throws:
java.io.IOException
writeEndpointDescription
protected void writeEndpointDescription(int indentLevel,
java.io.Writer writer,
org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
throws java.io.IOException
- Throws:
java.io.IOException
writeProperties
protected void writeProperties(int indentLevel,
java.io.Writer writer,
org.osgi.service.remoteserviceadmin.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