Class ConcreteSubtypeNode
- java.lang.Object
-
- org.soulwing.prospecto.runtime.template.AbstractViewNode
-
- org.soulwing.prospecto.runtime.template.AbstractContainerNode
-
- org.soulwing.prospecto.runtime.template.ConcreteSubtypeNode
-
- All Implemented Interfaces:
Iterable<ViewNode>
,MutableScope
,Scope
,AppliableNode
,ContainerNode
,SubtypeNode
,UpdatableNode
,ViewNode
public class ConcreteSubtypeNode extends AbstractContainerNode implements SubtypeNode
A node that acts as a container for properties of a subtype of its parent node.Unlike other container nodes, this node does not introduce any additional object/array structure into a view. When evaluated with a model type that is an instance of the type specified in its constructor, its children become peers of the other children of its parent node.
- Author:
- Carl Harris
-
-
Field Summary
-
Fields inherited from class org.soulwing.prospecto.runtime.template.AbstractContainerNode
children
-
-
Constructor Summary
Constructors Constructor Description ConcreteSubtypeNode(Class<?> subtype)
Constructs a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ViewNodeVisitor visitor, Object state)
-
Methods inherited from class org.soulwing.prospecto.runtime.template.AbstractContainerNode
addChild, addChildren, getChildren, iterator
-
Methods inherited from class org.soulwing.prospecto.runtime.template.AbstractViewNode
get, get, getAccessor, getAllowedModes, getKeyType, getModelType, getName, getNamespace, getParent, getPropertyName, getSupportedModes, put, put, putAll, putAll, putAll, remove, setAccessor, setAllowedModes, setParent, toString, validateAccessModes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.soulwing.prospecto.api.template.UpdatableNode
getAllowedModes, getPropertyName, getSupportedModes
-
Methods inherited from interface org.soulwing.prospecto.api.template.ViewNode
getModelType, getName, getNamespace, getParent
-
-
-
-
Constructor Detail
-
ConcreteSubtypeNode
public ConcreteSubtypeNode(Class<?> subtype)
Constructs a new instance- Parameters:
subtype
- type which must be a subtype of the parent node's type
-
-
Method Detail
-
accept
public Object accept(ViewNodeVisitor visitor, Object state)
- Specified by:
accept
in classAbstractViewNode
-
-