|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.yamlbeans.YamlConfig
public class YamlConfig
Stores configuration for reading and writing YAML.
Nested Class Summary | |
---|---|
static class |
YamlConfig.ReadConfig
|
static class |
YamlConfig.WriteConfig
|
Field Summary | |
---|---|
YamlConfig.ReadConfig |
readConfig
Configuration for reading YAML. |
YamlConfig.WriteConfig |
writeConfig
Configuration for writing YAML. |
Constructor Summary | |
---|---|
YamlConfig()
|
Method Summary | |
---|---|
void |
setBeanProperties(boolean beanProperties)
If true, bean properties with both a getter and setter will be used. |
void |
setClassTag(java.lang.String tag,
java.lang.Class type)
Allows the specified tag to be used in YAML instead of the full class name. |
void |
setPrivateFields(boolean privateFields)
If true, private non-transient fields will be used. |
void |
setPropertyDefaultType(java.lang.Class type,
java.lang.String propertyName,
java.lang.Class defaultType)
Sets the default type of a property. |
void |
setPropertyElementType(java.lang.Class type,
java.lang.String propertyName,
java.lang.Class elementType)
Sets the default type of elements in a Collection or Map property. |
void |
setScalarSerializer(java.lang.Class type,
ScalarSerializer serializer)
Adds a serializer for the specified scalar type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final YamlConfig.WriteConfig writeConfig
public final YamlConfig.ReadConfig readConfig
Constructor Detail |
---|
public YamlConfig()
Method Detail |
---|
public void setClassTag(java.lang.String tag, java.lang.Class type)
public void setScalarSerializer(java.lang.Class type, ScalarSerializer serializer)
public void setPropertyElementType(java.lang.Class type, java.lang.String propertyName, java.lang.Class elementType)
public void setPropertyDefaultType(java.lang.Class type, java.lang.String propertyName, java.lang.Class defaultType)
public void setBeanProperties(boolean beanProperties)
public void setPrivateFields(boolean privateFields)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |