Class AbstractRenderingTarget
java.lang.Object
org.hibernate.models.rendering.spi.AbstractRenderingTarget
- All Implemented Interfaces:
RenderingTarget
- Direct Known Subclasses:
RenderingTargetCollectingImpl,RenderingTargetStreamImpl
Base support for RenderingTarget implementations. Handles most details,
delegating just the actual appending of characters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine()Adds a newline.voidAdds the string, preceded by any necessary indentation, followed by a newline.voidAdds the rendered pattern, preceded by any necessary indentation, followed by a newline.voidindent(int depth) Increase the indentation by the given factor.voidunindent(int depth) Decrease the indentation by the given factor.protected abstract void
-
Field Details
-
DEFAULT_INDENT_DEPTH
public static final int DEFAULT_INDENT_DEPTH- See Also:
-
-
Constructor Details
-
AbstractRenderingTarget
public AbstractRenderingTarget() -
AbstractRenderingTarget
public AbstractRenderingTarget(int indentationDepth)
-
-
Method Details
-
write
-
addLine
Description copied from interface:RenderingTargetAdds the string, preceded by any necessary indentation, followed by a newline.- Specified by:
addLinein interfaceRenderingTarget- See Also:
-
addLine
Description copied from interface:RenderingTargetAdds the rendered pattern, preceded by any necessary indentation, followed by a newline.- Specified by:
addLinein interfaceRenderingTarget- See Also:
-
addLine
public void addLine()Description copied from interface:RenderingTargetAdds a newline.- Specified by:
addLinein interfaceRenderingTarget
-
indent
public void indent(int depth) Description copied from interface:RenderingTargetIncrease the indentation by the given factor.- Specified by:
indentin interfaceRenderingTarget
-
unindent
public void unindent(int depth) Description copied from interface:RenderingTargetDecrease the indentation by the given factor.- Specified by:
unindentin interfaceRenderingTarget
-