|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yaml.snakeyaml.constructor.BaseConstructor
public abstract class BaseConstructor
Field Summary | |
---|---|
protected Tag |
rootTag
|
protected Map<NodeId,Construct> |
yamlClassConstructors
It maps the node kind to the the Construct implementation. |
protected Map<Tag,Construct> |
yamlConstructors
It maps the (explicit or implicit) tag to the Construct implementation. |
protected Map<String,Construct> |
yamlMultiConstructors
It maps the (explicit or implicit) tag to the Construct implementation. |
Constructor Summary | |
---|---|
BaseConstructor()
|
Method Summary | ||
---|---|---|
boolean |
checkData()
Check if more documents available |
|
protected Object |
constructArray(SequenceNode node)
|
|
protected Object |
constructArrayStep2(SequenceNode node,
Object array)
|
|
protected Map<Object,Object> |
constructMapping(MappingNode node)
|
|
protected void |
constructMapping2ndStep(MappingNode node,
Map<Object,Object> mapping)
|
|
protected Object |
constructObject(Node node)
Construct object from the specified Node. |
|
protected Object |
constructScalar(ScalarNode node)
|
|
protected List<? extends Object> |
constructSequence(SequenceNode node)
|
|
protected void |
constructSequenceStep2(SequenceNode node,
Collection<Object> collection)
|
|
protected Set<Object> |
constructSet(MappingNode node)
|
|
protected Set<? extends Object> |
constructSet(SequenceNode node)
|
|
protected void |
constructSet2ndStep(MappingNode node,
Set<Object> set)
|
|
protected
|
createArray(Class<T> type,
int size)
|
|
protected List<Object> |
createDefaultList(int initSize)
|
|
protected Map<Object,Object> |
createDefaultMap()
|
|
protected Set<Object> |
createDefaultSet()
|
|
protected Set<Object> |
createDefaultSet(int initSize)
|
|
protected Construct |
getConstructor(Node node)
Get the constructor to construct the Node. |
|
Object |
getData()
Construct and return the next document |
|
PropertyUtils |
getPropertyUtils()
|
|
Object |
getSingleData(Class<?> type)
Ensure that the stream contains a single document and construct it |
|
boolean |
isExplicitPropertyUtils()
|
|
void |
setComposer(Composer composer)
|
|
void |
setPropertyUtils(PropertyUtils propertyUtils)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map<NodeId,Construct> yamlClassConstructors
protected final Map<Tag,Construct> yamlConstructors
protected final Map<String,Construct> yamlMultiConstructors
protected Tag rootTag
Constructor Detail |
---|
public BaseConstructor()
Method Detail |
---|
public void setComposer(Composer composer)
public boolean checkData()
public Object getData()
public Object getSingleData(Class<?> type)
ComposerException
- in case there are more documents in the streamprotected Object constructObject(Node node)
node
- Node to be constructed
protected Construct getConstructor(Node node)
node
- Node to be constructed
protected Object constructScalar(ScalarNode node)
protected List<Object> createDefaultList(int initSize)
protected Set<Object> createDefaultSet(int initSize)
protected <T> T[] createArray(Class<T> type, int size)
protected List<? extends Object> constructSequence(SequenceNode node)
protected Set<? extends Object> constructSet(SequenceNode node)
protected Object constructArray(SequenceNode node)
protected void constructSequenceStep2(SequenceNode node, Collection<Object> collection)
protected Object constructArrayStep2(SequenceNode node, Object array)
protected Map<Object,Object> createDefaultMap()
protected Set<Object> createDefaultSet()
protected Set<Object> constructSet(MappingNode node)
protected Map<Object,Object> constructMapping(MappingNode node)
protected void constructMapping2ndStep(MappingNode node, Map<Object,Object> mapping)
protected void constructSet2ndStep(MappingNode node, Set<Object> set)
public void setPropertyUtils(PropertyUtils propertyUtils)
public final PropertyUtils getPropertyUtils()
public final boolean isExplicitPropertyUtils()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |