| Package | Description |
|---|---|
| alexh.weak |
| Modifier and Type | Class and Description |
|---|---|
class |
ChildAbsence<Parent extends Dynamic> |
static class |
ChildAbsence.Missing<P extends Dynamic & alexh.weak.Describer> |
class |
ParentAbsence<Parent extends Dynamic> |
static class |
ParentAbsence.Barren<P extends Dynamic & alexh.weak.Describer> |
static class |
ParentAbsence.Empty<P extends Dynamic & alexh.weak.Describer> |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDynamic<T> |
class |
XmlDynamic
Dynamic implementation for XML documents
All keys & values in an XmlDynamic unwrap to Strings, try
Weak.convert()
to implement basic string->type conversions |
| Modifier and Type | Method and Description |
|---|---|
default Dynamic |
Dynamic.dget(String dotSeparatedPath)
Shortcut for
dynamic.get("some.path.to.somewhere", ".") avoiding the need for the second argument
ie dynamic.dget("some.path.to.somewhere") |
static Dynamic |
Dynamic.from(Object val)
Wraps a value in a dynamic representation, properly handled nested types are Maps & Collections all other types
become dynamic end-points.
|
Dynamic |
Dynamic.get(Object key)
Returns a dynamic wrapping the immediate child of this instance with the input key,
or a dynamic representing the lack of such a child.
|
Dynamic |
XmlDynamic.get(Object keyObject)
Returns a dynamic wrapping the immediate child of this instance with the input key,
or a dynamic representing the lack of such a child.
|
Dynamic |
ChildAbsence.get(Object key) |
Dynamic |
ParentAbsence.get(Object key) |
default Dynamic |
Dynamic.get(String keyPath,
String separator)
Performs multiple String gets as described by an input key path
so
dynamic.get("one.two.three", ".")
is equivalent to dynamic.get("one").get("two").get("three") |
protected Dynamic |
XmlDynamic.getWithNamespace(String namespace,
String key) |
Dynamic |
AbstractDynamic.key() |
| Modifier and Type | Method and Description |
|---|---|
default Stream<Dynamic> |
Dynamic.allChildren() |
default Stream<Dynamic> |
Dynamic.allChildrenBreadthFirst()
Returns a stream of all children in a breadth first order, for example a structure
|
default Stream<Dynamic> |
Dynamic.allChildrenDepthFirst()
Returns a stream of all children in a depth first order, for example a structure
|
Stream<Dynamic> |
Dynamic.children() |
Stream<Dynamic> |
XmlDynamic.children() |
static Predicate<? super Dynamic> |
XmlDynamic.hasElementName(String elementName)
Predicate for an xml element's name as it appears in the xml itself (case insensitive)
Inside the xml dynamic multiple elements with the same names have unique suffices ie
dynamic -> dynamic.key().asString().equals("child") would only match the first
hasElementName("child") matches both |
| Constructor and Description |
|---|
Null(Dynamic parent,
Object key) |
Copyright © 2017. All rights reserved.