StringBin class to provide a String cache.
StringBin
| Modifier and Type | Field and Description |
|---|---|
| private StringBin | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SlimJDOMFactory(final boolean
should be true if you want the content of CDATA, Text,
Comment and Attribute values cached as well. cachetext)Construct a SlimJDOMFactory which will optionally cache Text/CDATA/Comment/Attribute values. |
| Modifier and Type | Method and Description |
|---|---|
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.Namespace of the new AttributeOverrides org. Implements org.
This will create a new |
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.int type for new attribute.Namespace namespace for new attribute.Overrides org. Implements org.
Deprecated
This will create a new Attribute with the
specified (local) name, value, and type, and in the provided
.
|
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.AttributeType type for new attribute.Namespace namespace for new attribute.Overrides org. Implements org. Attribute with the
specified (local) name, value, and type, and in the provided
.
|
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.Overrides org. Implements org. Attribute with the
specified (local) name and value, and does not place
the attribute in a .
|
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.int type for new attribute.Overrides org. Implements org.
Deprecated
This will create a new Attribute with the
specified (local) name, value and type, and does not place
the attribute in a .
|
| public Attribute | attribute(final String
String name of Attribute.String value for new attribute.AttributeType type for new attribute.Overrides org. Implements org. Attribute with the
specified (local) name, value and type, and does not place
the attribute in a .
|
| public CDATA | cdata(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String content of CDATA.Overrides org. Implements org. |
| public void | |
| public Comment | comment(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String content of comment.Overrides org. Implements org. |
| public DocType | docType(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of
element being constrained.String public ID of
referenced DTDString system ID of
referenced DTDOverrides org. Implements org. DocType with
the specified element name and a reference to an
external DTD.
|
| public DocType | docType(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of
element being constrained.String system ID of
referenced DTDOverrides org. Implements org. DocType with
the specified element name and reference to an
external DTD.
|
| public DocType | docType(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of
element being constrained.Overrides org. Implements org. DocType with
the specified element name
|
| public Element | element(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.Namespace to put element in.Overrides org. Implements org. Element
with the supplied (local) name, and define
the to be used.
|
| public Element | element(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.Overrides org. Implements org. Element in no
.
|
| public Element | element(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.String URI for Namespace element
should be in.Overrides org. Implements org. Element with
the supplied (local) name, and specifies the URI
of the the Element
should be in, resulting it being unprefixed (in the default
namespace).
|
| public Element | element(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.the NamespacePrefic to use for this Element prefix, final String String URI for Namespace element
should be in.Overrides org. Implements org. Element with
the supplied (local) name, and specifies the prefix and URI
of the the Element
should be in.
|
| public EntityRef | entityRef(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.Overrides org. Implements org. EntityRef
with the supplied name.
|
| public EntityRef | entityRef(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.String public ID of element.String system ID of element.Overrides org. Implements org. EntityRef
with the supplied name, public ID, and system ID.
|
| public EntityRef | entityRef(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String name of element.String system ID of element.Overrides org. Implements org. EntityRef
with the supplied name and system ID.
|
| public ProcessingInstruction | processingInstruction(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String target of PI.Map data for PI, in
name/value pairsOverrides org. Implements org. ProcessingInstruction
with the specified target and data.
|
| public ProcessingInstruction | processingInstruction(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String target of PI.String data for PI.Overrides org. Implements org. ProcessingInstruction
with the specified target and data.
|
| public ProcessingInstruction | processingInstruction(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String target of PI.Overrides org. Implements org. ProcessingInstruction
with the specified target and no data.
|
| public Text | text(final int
The line on which this content begins. line, final int The column on the line at which this content begins. col, final String String content of Text.Overrides org. Implements org. |
| cache | back to summary |
|---|---|
| private StringBin cache | |
| cachetext | back to summary |
|---|---|
| private final boolean cachetext | |
| SlimJDOMFactory | back to summary |
|---|---|
| public SlimJDOMFactory() | |
| SlimJDOMFactory | back to summary |
|---|---|
| public SlimJDOMFactory(final boolean cachetext) Construct a SlimJDOMFactory which will optionally cache Text/CDATA/Comment/Attribute values. Caching these values is recommended because often XML documents have many instances of the same Text values (especially whitespace sequences...)
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value, final Namespace namespace) Overrides org. Implements org. Doc from org.
This will create a new | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value, final int type, final Namespace namespace) Overrides org. Implements org. Doc from org. Deprecated
This will create a new | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value, final AttributeType type, Namespace namespace) Overrides org. Implements org. Doc from org. This will create a new | |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value) Overrides org. Implements org. Doc from org. This will create a new Note This actually explicitly puts the
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value, final int type) Overrides org. Implements org. Doc from org. Deprecated
This will create a new Note This actually explicitly puts the
| |
| attribute | back to summary |
|---|---|
| public Attribute attribute(final String name, final String value, final AttributeType type) Overrides org. Implements org. Doc from org. This will create a new Note This actually explicitly puts the
| |
| cdata | back to summary |
|---|---|
| public CDATA cdata(final int line, final int col, final String str) Overrides org. Implements org. Doc from org. This creates the CDATA with the supplied text. | |
| clearCache | back to summary |
|---|---|
| public void clearCache() Reset any Cached String instance data from this SlimJDOMFaxctory cache. | |
| comment | back to summary |
|---|---|
| public Comment comment(final int line, final int col, final String text) Overrides org. Implements org. Doc from org. This creates the comment with the supplied text. | |
| docType | back to summary |
|---|---|
| public DocType docType(final int line, final int col, final String elementName, final String publicID, final String systemID) Overrides org. Implements org. Doc from org. This will create the
| |
| docType | back to summary |
|---|---|
| public DocType docType(final int line, final int col, final String elementName, final String systemID) Overrides org. Implements org. Doc from org. This will create the | |
| docType | back to summary |
|---|---|
| public DocType docType(final int line, final int col, final String elementName) Overrides org. Implements org. Doc from org. This will create the | |
| element | back to summary |
|---|---|
| public Element element(final int line, final int col, final String name, final Namespace namespace) Overrides org. Implements org. Doc from org. This will create a new | |
| element | back to summary |
|---|---|
| public Element element(final int line, final int col, final String name) Overrides org. Implements org. Doc from org. This will create an | |
| element | back to summary |
|---|---|
| public Element element(final int line, final int col, final String name, final String uri) Overrides org. Implements org. Doc from org. This will create a new | |
| element | back to summary |
|---|---|
| public Element element(final int line, final int col, final String name, final String prefix, final String uri) Overrides org. Implements org. Doc from org. This will create a new
| |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(final int line, final int col, final String name) Overrides org. Implements org. Doc from org. This will create a new | |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(final int line, final int col, final String name, final String publicID, final String systemID) Overrides org. Implements org. Doc from org. This will create a new
| |
| entityRef | back to summary |
|---|---|
| public EntityRef entityRef(final int line, final int col, final String name, final String systemID) Overrides org. Implements org. Doc from org. This will create a new | |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(final int line, final int col, final String target, final Map<String, String> data) Overrides org. Implements org. Doc from org. This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(final int line, final int col, final String target, final String data) Overrides org. Implements org. Doc from org. This will create a new
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(final int line, final int col, final String target) Overrides org. Implements org. Doc from org. This will create a new
| |
| text | back to summary |
|---|---|
| public Text text(final int line, final int col, final String str) Overrides org. Implements org. Doc from org. This creates the Text with the supplied text. | |