Interface Perspective
-
- All Superinterfaces:
Domable
,PerspectiveView
- All Known Implementing Classes:
PerspectiveI
public interface Perspective extends PerspectiveView
Interface for adhoc and dynamic trees.There is no distinction between text, attributes and elements like in XML, as there is no actual meaning in this distinction. In XML this is used for rendering and helps to distinct between text and elements in XSL. In Perspective this distinction is done via name spaces.
IDEA Create alternative to XSL.
A perspective is like an variable. An variable may only hold one value, that may be a list of values. A perspective holds a value and a list of perspectives. In other words, a Perspective is an structure for variables. It has a name in a certain scope which is the namespace. The name is only valid in this scope and may restrict the possible values of the perspective. In other words the namespace may have an type encoded in it, that is described externally. A perspective has a value, if it only contains exactly one value. A perspective has children, if it contains multiple values.
-
-
Method Summary
-
Methods inherited from interface net.splitcells.dem.lang.dom.Domable
toPerspective
-
Methods inherited from interface net.splitcells.dem.lang.perspective.PerspectiveView
name, nameIs, nameSpace, value
-
-
-
-
Method Detail
-
children
List<Perspective> children()
- Specified by:
children
in interfacePerspectiveView
-
withText
default Perspective withText(String text)
-
withProperty
default Perspective withProperty(String name, NameSpace nameSpace, String value)
-
withProperty
default Perspective withProperty(String name, String value)
-
withValues
default Perspective withValues(Perspective... args)
-
propertiesWithValue
default List<Perspective> propertiesWithValue(String name, NameSpace nameSpace, String value)
-
toStringPathsDescription
default String toStringPathsDescription()
-
propertyInstances
default List<Perspective> propertyInstances(String name, NameSpace nameSpace)
-
propertyInstance
default Optional<Perspective> propertyInstance(String name, NameSpace nameSpace)
-
childNamed
default Optional<Perspective> childNamed(String name, NameSpace nameSpace)
-
withChildren
default Perspective withChildren(List<Perspective> argChildren)
-
withChildren
default Perspective withChildren(Stream<Perspective> argChildren)
-
withChild
default Perspective withChild(Perspective arg)
-
withValue
@Deprecated default Perspective withValue(Perspective arg)
Deprecated.
-
withPath
default Perspective withPath(Perspective path, String propertyName, NameSpace nameSpace)
-
toHtmlString
default String toHtmlString()
-
-