Package org.restlet.ext.emf.internal
Class EmfHtmlWriter
- java.lang.Object
-
- org.restlet.ext.emf.internal.EmfHtmlWriter
-
@Deprecated public class EmfHtmlWriter extends java.lang.ObjectDeprecated.Will be removed in next minor release.Offers a generic HTML representation of an EMF object. It lists all its properties and can even generate HTML links when the proper EMF eAnnotation is detected. This is useful to be able to automatically navigate a Web API whose resource representations are defined using EMF.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringANNOTATION_URIDeprecated.private org.eclipse.emf.ecore.EObjectobjectDeprecated.
-
Constructor Summary
Constructors Constructor Description EmfHtmlWriter(org.eclipse.emf.ecore.EObject object)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.eclipse.emf.ecore.EObjectgetObject()Deprecated.Returns the EMF object to write.voidwrite(java.io.Writer writer)Deprecated.Writes the wrapped EMF object as an HTML document.private voidwriteRow(java.io.Writer writer, java.lang.String name, java.lang.String value, boolean hyperlink)Deprecated.
-
-
-
Field Detail
-
ANNOTATION_URI
public static final java.lang.String ANNOTATION_URI
Deprecated.- See Also:
- Constant Field Values
-
object
private final org.eclipse.emf.ecore.EObject object
Deprecated.
-
-
Method Detail
-
getObject
public org.eclipse.emf.ecore.EObject getObject()
Deprecated.Returns the EMF object to write.- Returns:
- The EMF object to write.
-
write
public void write(java.io.Writer writer) throws java.io.IOExceptionDeprecated.Writes the wrapped EMF object as an HTML document.- Parameters:
writer- The writer to use.- Throws:
java.io.IOException
-
writeRow
private void writeRow(java.io.Writer writer, java.lang.String name, java.lang.String value, boolean hyperlink) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-