org.hyperic.util.config
Class ConfigSchema
java.lang.Object
org.hyperic.util.config.ConfigSchema
- All Implemented Interfaces:
- java.io.Serializable
public class ConfigSchema
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigSchema
public ConfigSchema()
ConfigSchema
public ConfigSchema(ConfigOption[] options)
- Construct a ConfigSchema based on the array of ConfigOptions
provided.
- Parameters:
options
- An array of ConfigOptions to populate this
schema with.
getOptions
public java.util.List getOptions()
getOptionsMap
public java.util.Map getOptionsMap()
- Returns:
- Map of getOptions() using ConfigOption.getName() for the keys
getOption
public ConfigOption getOption(java.lang.String name)
- Parameters:
name
- ConfigOption.getName() value
- Returns:
- ConfigOption that matches the name param
getOptionNames
public java.lang.String[] getOptionNames()
getDefaultProperties
public java.util.Map getDefaultProperties()
addOption
public void addOption(ConfigOption option)
addOptions
public void addOptions(java.util.List options)
encode
public byte[] encode()
throws EncodingException
- Throws:
EncodingException
decode
public static ConfigSchema decode(byte[] data)
throws EncodingException,
InvalidOptionException,
InvalidOptionValueException
- Throws:
EncodingException
InvalidOptionException
InvalidOptionValueException
setDefault
public void setDefault(java.lang.String prop,
java.lang.String value)
- Change the default value for a given property within the schema.
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.