Package com.github.weisj.jsvg.parser
Class ParsedElement
- java.lang.Object
-
- com.github.weisj.jsvg.parser.ParsedElement
-
public final class ParsedElement extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ParsedElement.BuildStatus
-
Field Summary
Fields Modifier and Type Field Description private @NotNull AttributeNode
attributeNode
private @NotNull ParsedElement.BuildStatus
buildStatus
(package private) CharacterDataParser
characterDataParser
private @NotNull java.util.List<@NotNull ParsedElement>
children
private @Nullable java.lang.String
id
private @NotNull SVGNode
node
-
Constructor Summary
Constructors Constructor Description ParsedElement(@Nullable java.lang.String id, @NotNull AttributeNode element, @NotNull SVGNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addChild(ParsedElement parsedElement)
@NotNull AttributeNode
attributeNode()
(package private) void
build()
@NotNull java.util.List<ParsedElement>
children()
private void
cyclicDependencyDetected()
@Nullable java.lang.String
id()
@NotNull SVGNode
node()
@NotNull SVGNode
nodeEnsuringBuildStatus()
void
registerNamedElement(@NotNull java.lang.String name, @NotNull java.lang.Object element)
java.lang.String
toString()
-
-
-
Field Detail
-
id
@Nullable private final @Nullable java.lang.String id
-
attributeNode
@NotNull private final @NotNull AttributeNode attributeNode
-
node
@NotNull private final @NotNull SVGNode node
-
children
@NotNull private final @NotNull java.util.List<@NotNull ParsedElement> children
-
characterDataParser
final CharacterDataParser characterDataParser
-
buildStatus
@NotNull private @NotNull ParsedElement.BuildStatus buildStatus
-
-
Constructor Detail
-
ParsedElement
ParsedElement(@Nullable @Nullable java.lang.String id, @NotNull @NotNull AttributeNode element, @NotNull @NotNull SVGNode node)
-
-
Method Detail
-
registerNamedElement
public void registerNamedElement(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.Object element)
-
id
@Nullable public @Nullable java.lang.String id()
-
children
@NotNull public @NotNull java.util.List<ParsedElement> children()
-
node
@NotNull public @NotNull SVGNode node()
-
nodeEnsuringBuildStatus
@NotNull public @NotNull SVGNode nodeEnsuringBuildStatus()
-
attributeNode
@NotNull public @NotNull AttributeNode attributeNode()
-
addChild
void addChild(ParsedElement parsedElement)
-
build
void build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
cyclicDependencyDetected
private void cyclicDependencyDetected()
-
-