- 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 classParsedElement.BuildStatus
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.util.Map<java.lang.String,@NotNull java.util.List<@NotNull ParsedElement>>animationElementsprivate @NotNull AttributeNodeattributeNodeprivate @NotNull ParsedElement.BuildStatusbuildStatus(package private) CharacterDataParsercharacterDataParserprivate @NotNull java.util.List<@NotNull ParsedElement>childrenprivate @NotNull ParsedDocumentdocumentprivate @Nullable java.lang.Stringidprivate @NotNull java.util.List<@NotNull ParsedElement>indirectChildrenprivate @NotNull SVGNodenodeprivate intoutgoingPathsprivate @Nullable ParsedElementparent
-
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) voidaddChild(@NotNull ParsedElement parsedElement)(package private) voidaddIndirectChild(@NotNull ParsedElement parsedElement)@NotNull java.util.Map<java.lang.String,java.util.List<ParsedElement>>animationElements()@Nullable java.lang.Stringattribute(@NotNull java.lang.String name)@NotNull AttributeNodeattributeNode()(package private) voidbuild(int depth)@NotNull java.util.List<ParsedElement>children()@NotNull java.util.List<@NotNull java.lang.String>classNames()private voidcyclicDependencyDetected()@NotNull ParsedDocumentdocument()@Nullable java.lang.Stringid()@NotNull SVGNodenode()@NotNull SVGNodenodeEnsuringBuildStatus(int depth)(package private) intoutgoingPaths()@Nullable ParsedElementparent()voidsetAttribute(@NotNull java.lang.String name, @Nullable java.lang.String value)@NotNull java.lang.StringtagName()java.lang.StringtoString()-
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:
idin interfaceDomElement
-
tagName
@NotNull public @NotNull java.lang.String tagName()
- Specified by:
tagNamein interfaceDomElement
-
classNames
@NotNull public @NotNull java.util.List<@NotNull java.lang.String> classNames()
- Specified by:
classNamesin interfaceDomElement
-
document
@NotNull public @NotNull ParsedDocument document()
- Specified by:
documentin interfaceDomElement
-
children
@NotNull public @NotNull java.util.List<ParsedElement> children()
- Specified by:
childrenin interfaceDomElement
-
attribute
@Nullable public @Nullable java.lang.String attribute(@NotNull @NotNull java.lang.String name)- Specified by:
attributein interfaceDomElement
-
setAttribute
public void setAttribute(@NotNull @NotNull java.lang.String name, @Nullable @Nullable java.lang.String value)- Specified by:
setAttributein interfaceDomElement
-
animationElements
@NotNull public @NotNull java.util.Map<java.lang.String,java.util.List<ParsedElement>> animationElements()
-
parent
@Nullable public @Nullable ParsedElement parent()
- Specified by:
parentin 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:
toStringin classjava.lang.Object
-
cyclicDependencyDetected
private void cyclicDependencyDetected()
-
-