public class EndpointDescriptionWriter
extends java.lang.Object
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.Modifier and Type | Class and Description |
---|---|
protected class |
EndpointDescriptionWriter.ArrayProperty |
protected class |
EndpointDescriptionWriter.ComplexProperty |
protected class |
EndpointDescriptionWriter.ListProperty |
protected class |
EndpointDescriptionWriter.MultiValueProperty |
protected class |
EndpointDescriptionWriter.SetProperty |
protected class |
EndpointDescriptionWriter.XmlProperty |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
indent |
protected java.util.List<java.lang.String> |
xmlNames |
Constructor and Description |
---|
EndpointDescriptionWriter() |
EndpointDescriptionWriter(java.util.List<java.lang.String> xmlNames) |
Modifier and Type | Method and Description |
---|---|
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) |
java.io.Writer |
writeEndpointDescription(EndpointDescription endpointDescription) |
protected void |
writeEndpointDescription(int indentLevel,
java.io.Writer writer,
EndpointDescription endpointDescription) |
void |
writeEndpointDescription(java.io.Writer writer,
EndpointDescription endpointDescription) |
java.io.Writer |
writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) |
void |
writeEndpointDescriptions(java.io.Writer writer,
EndpointDescription[] endpointDescriptions) |
protected void |
writeProperties(int indentLevel,
java.io.Writer writer,
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) |
protected java.lang.String indent
protected java.util.List<java.lang.String> xmlNames
public EndpointDescriptionWriter()
public EndpointDescriptionWriter(java.util.List<java.lang.String> xmlNames)
public java.io.Writer writeEndpointDescription(EndpointDescription endpointDescription) throws java.io.IOException
endpointDescription
- the endpoint description to writejava.io.IOException
- if endpoint descriptino cannot be writtenpublic java.io.Writer writeEndpointDescriptions(EndpointDescription[] endpointDescriptions) throws java.io.IOException
endpointDescriptions
- the endpoint descriptions to writejava.io.IOException
- if problem writingpublic void writeEndpointDescription(java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException
writer
- the writer to useendpointDescription
- the endpointDescription to writejava.io.IOException
- thrown if some problem writingpublic void writeEndpointDescriptions(java.io.Writer writer, EndpointDescription[] endpointDescriptions) throws java.io.IOException
java.io.IOException
protected void writeEndpointDescription(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException
java.io.IOException
protected void writeProperties(int indentLevel, java.io.Writer writer, EndpointDescription endpointDescription) throws java.io.IOException
java.io.IOException
protected void writeProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value) throws java.io.IOException
java.io.IOException
protected void writeUnknownProperty(int indentLevel, java.io.Writer writer, java.lang.String name, java.lang.Object value)
protected EndpointDescriptionWriter.ComplexProperty getComplexProperty(java.lang.String name, java.lang.Object value)
protected EndpointDescriptionWriter.XmlProperty getXmlProperty(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) throws java.io.IOException
java.io.IOException
protected EndpointDescriptionWriter.MultiValueProperty getMultiValueProperty(java.lang.String key, java.lang.Object value)
protected java.lang.String getValueType(java.lang.Object value)
protected java.io.Writer newLine(java.io.Writer writer) throws java.io.IOException
java.io.IOException
protected java.io.Writer indent(int indentLevel, java.io.Writer writer) throws java.io.IOException
java.io.IOException