org.yaml.snakeyaml.constructor
Class BaseConstructor
- java.lang.Object
-
- org.yaml.snakeyaml.constructor.BaseConstructor
-
- Direct Known Subclasses:
- SafeConstructor
public abstract class BaseConstructor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description BaseConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancheckData()Check if more documents availablejava.lang.ObjectgetData()Construct and return the next documentPropertyUtilsgetPropertyUtils()java.lang.ObjectgetSingleData(java.lang.Class<?> type)Ensure that the stream contains a single document and construct itbooleanisExplicitPropertyUtils()voidsetComposer(Composer composer)voidsetPropertyUtils(PropertyUtils propertyUtils)
-
-
-
Method Detail
-
setComposer
public void setComposer(Composer composer)
-
checkData
public boolean checkData()
Check if more documents available- Returns:
- true when there are more YAML documents in the stream
-
getData
public java.lang.Object getData()
Construct and return the next document- Returns:
- constructed instance
-
getSingleData
public java.lang.Object getSingleData(java.lang.Class<?> type)
Ensure that the stream contains a single document and construct it- Returns:
- constructed instance
- Throws:
ComposerException- in case there are more documents in the stream
-
setPropertyUtils
public void setPropertyUtils(PropertyUtils propertyUtils)
-
getPropertyUtils
public final PropertyUtils getPropertyUtils()
-
isExplicitPropertyUtils
public final boolean isExplicitPropertyUtils()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG