Package de.gematik.rbellogger.data
Class RbelElement
java.lang.Object
de.gematik.rbellogger.util.RbelPathAble
de.gematik.rbellogger.data.RbelElement
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRbelElement(byte[] rawContent, RbelElement parentNode) RbelElement(byte[] rawContent, RbelElement parentNode, Optional<Charset> charset) RbelElement(String uuid, byte[] rawContent, RbelElement parentNode, Optional<Charset> charset) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrReplaceFacet(RbelFacet facet) builder()Should return the list of search-relevant nodes.findAncestorWithFacet(Class<? extends RbelFacet> rbelFacetClass) findElement(String rbelPath) findRbelPathMembers(String rbelPath) <T> Optional<T><T extends RbelFacet>
TgetFacetOrFail(Class<T> facetClass) getKey()getNotes()byte[]longgetSize()getUuid()booleanprintTreeStructure(int maximumLevels, boolean printKeys) voidremoveFacetsOfType(Class<? extends RbelFacet> facetClass) <T> Optional<T>voidsetCharset(Optional<Charset> charset) booleanShould this element be present in the final RbelPath results?toString()voidstatic RbelElementwrap(byte[] rawValue, @NonNull RbelElement parentNode, Object value) static RbelElementwrap(@NonNull RbelElement parentNode, Object value) Methods inherited from class de.gematik.rbellogger.util.RbelPathAble
findNodePath
-
Constructor Details
-
RbelElement
-
RbelElement
-
RbelElement
public RbelElement(@Nullable String uuid, byte[] rawContent, RbelElement parentNode, Optional<Charset> charset)
-
-
Method Details
-
wrap
public static RbelElement wrap(byte[] rawValue, @NonNull @NonNull RbelElement parentNode, Object value) -
wrap
-
getFacet
-
hasFacet
-
addFacet
-
getChildNodes
- Specified by:
getChildNodesin classRbelPathAble
-
getChildNodesWithKey
- Specified by:
getChildNodesWithKeyin classRbelPathAble
-
triggerPostConversionListener
-
traverseAndReturnNestedMembers
-
getFirst
- Specified by:
getFirstin classRbelPathAble
-
getAll
- Specified by:
getAllin classRbelPathAble
-
findKeyInParentElement
-
findRbelPathMembers
- Specified by:
findRbelPathMembersin classRbelPathAble
-
getRawStringContent
- Specified by:
getRawStringContentin classRbelPathAble
-
getElementCharset
-
getFacetOrFail
-
toString
-
seekValue
-
printValue
-
seekValue
-
getKey
- Specified by:
getKeyin classRbelPathAble
-
addOrReplaceFacet
-
removeFacetsOfType
-
findElement
-
printTreeStructureWithoutColors
-
printTreeStructure
-
printTreeStructure
-
getNotes
-
findMessage
-
findAncestorWithFacet
-
descendToContentNodeIfAdvised
Description copied from class:RbelPathAbleShould return the list of search-relevant nodes. Normally this would be the identity (the default implementation given here), but for virtual nodes (content-nodes in a rbel-tree for example) that should not be part of the actual search-tree the child-nodes should be returned.- Overrides:
descendToContentNodeIfAdvisedin classRbelPathAble
-
shouldElementBeKeptInFinalResult
public boolean shouldElementBeKeptInFinalResult()Description copied from class:RbelPathAbleShould this element be present in the final RbelPath results?- Overrides:
shouldElementBeKeptInFinalResultin classRbelPathAble
-
printHttpDescription
-
findRootElement
-
builder
-
toBuilder
-
getUuid
-
getRawContent
public byte[] getRawContent() -
getParentNode
- Specified by:
getParentNodein classRbelPathAble
-
getFacets
-
getCharset
-
getSize
public long getSize() -
setCharset
-