- java.lang.Object
-
- com.github.weisj.jsvg.parser.impl.ParsedElement
-
- All Implemented Interfaces:
DomElement
public final class ParsedElement extends java.lang.Object implements DomElement
-
-
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 java.util.Map<java.lang.String,@NotNull java.util.List<@NotNull ParsedElement>>
animationElements
private @NotNull AttributeNode
attributeNode
private @NotNull ParsedElement.BuildStatus
buildStatus
(package private) CharacterDataParser
characterDataParser
private @NotNull java.util.List<@NotNull ParsedElement>
children
private @NotNull ParsedDocument
document
private @Nullable java.lang.String
id
private @NotNull java.util.List<@NotNull ParsedElement>
indirectChildren
private @NotNull SVGNode
node
private int
outgoingPaths
private @Nullable ParsedElement
parent
-
Constructor Summary
Constructors Constructor Description ParsedElement(@Nullable java.lang.String id, @NotNull ParsedDocument document, @Nullable ParsedElement parent, @NotNull AttributeNode element, @NotNull SVGNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addChild(@NotNull ParsedElement parsedElement)
(package private) void
addIndirectChild(@NotNull ParsedElement parsedElement)
@NotNull java.util.Map<java.lang.String,java.util.List<ParsedElement>>
animationElements()
@Nullable java.lang.String
attribute(@NotNull java.lang.String name)
@NotNull AttributeNode
attributeNode()
(package private) void
build(int depth)
@NotNull java.util.List<ParsedElement>
children()
@NotNull java.util.List<@NotNull java.lang.String>
classNames()
private void
cyclicDependencyDetected()
@NotNull ParsedDocument
document()
@Nullable java.lang.String
id()
@NotNull SVGNode
node()
@NotNull SVGNode
nodeEnsuringBuildStatus(int depth)
(package private) int
outgoingPaths()
@Nullable ParsedElement
parent()
void
setAttribute(@NotNull java.lang.String name, @Nullable java.lang.String value)
@NotNull java.lang.String
tagName()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.weisj.jsvg.parser.DomElement
attribute
-
-
-
-
Field Detail
-
id
@Nullable private final @Nullable java.lang.String id
-
document
@NotNull private final @NotNull ParsedDocument document
-
parent
@Nullable private final @Nullable ParsedElement parent
-
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
-
indirectChildren
@NotNull private final @NotNull java.util.List<@NotNull ParsedElement> indirectChildren
-
animationElements
@NotNull private final @NotNull java.util.Map<java.lang.String,@NotNull java.util.List<@NotNull ParsedElement>> animationElements
-
characterDataParser
final CharacterDataParser characterDataParser
-
buildStatus
@NotNull private @NotNull ParsedElement.BuildStatus buildStatus
-
outgoingPaths
private int outgoingPaths
-
-
Constructor Detail
-
ParsedElement
ParsedElement(@Nullable @Nullable java.lang.String id, @NotNull @NotNull ParsedDocument document, @Nullable @Nullable ParsedElement parent, @NotNull @NotNull AttributeNode element, @NotNull @NotNull SVGNode node)
-
-
Method Detail
-
id
@Nullable public @Nullable java.lang.String id()
- Specified by:
id
in interfaceDomElement
-
tagName
@NotNull public @NotNull java.lang.String tagName()
- Specified by:
tagName
in interfaceDomElement
-
classNames
@NotNull public @NotNull java.util.List<@NotNull java.lang.String> classNames()
- Specified by:
classNames
in interfaceDomElement
-
document
@NotNull public @NotNull ParsedDocument document()
- Specified by:
document
in interfaceDomElement
-
children
@NotNull public @NotNull java.util.List<ParsedElement> children()
- Specified by:
children
in interfaceDomElement
-
attribute
@Nullable public @Nullable java.lang.String attribute(@NotNull @NotNull java.lang.String name)
- Specified by:
attribute
in interfaceDomElement
-
setAttribute
public void setAttribute(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.String value)
- Specified by:
setAttribute
in interfaceDomElement
-
animationElements
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.List<ParsedElement>> animationElements()
-
parent
@Nullable public @Nullable ParsedElement parent()
- Specified by:
parent
in interfaceDomElement
-
node
@NotNull public @NotNull SVGNode node()
-
nodeEnsuringBuildStatus
@NotNull public @NotNull SVGNode nodeEnsuringBuildStatus(int depth)
-
attributeNode
@NotNull public @NotNull AttributeNode attributeNode()
-
addChild
void addChild(@NotNull @NotNull ParsedElement parsedElement)
-
addIndirectChild
void addIndirectChild(@NotNull @NotNull ParsedElement parsedElement)
-
build
void build(int depth)
-
outgoingPaths
int outgoingPaths()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
cyclicDependencyDetected
private void cyclicDependencyDetected()
-
-