Package com.independentsoft.office.odf
Class ConfigurationItem
java.lang.Object
com.independentsoft.office.odf.ConfigurationItem
- All Implemented Interfaces:
IConfigurationItem
Represents the value of an application setting whose name is specified by its name attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ConfigurationItem class.ConfigurationItem(String name, ConfigurationType type, String value)Initializes a new instance of the ConfigurationItem class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.getName()Gets the name of an application setting, an application setting sequence, or an application setting container.getType()Gets a data type for a setting.getValue()Gets the value of an application setting.voidSets the name of an application setting, an application setting sequence, or an application setting container.voidsetType(ConfigurationType type)Sets a data type for a setting.voidSets the value of an application setting.toString()Converts the value of the current ConfigurationItem object to its equivalent string representation.
-
Constructor Details
-
ConfigurationItem
public ConfigurationItem()Initializes a new instance of the ConfigurationItem class. -
ConfigurationItem
Initializes a new instance of the ConfigurationItem class.- Parameters:
name- the nametype- the typevalue- the value
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIConfigurationItem- Overrides:
clonein classObject- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current ConfigurationItem object to its equivalent string representation. -
getName
Gets the name of an application setting, an application setting sequence, or an application setting container.- Returns:
- the name
-
setName
Sets the name of an application setting, an application setting sequence, or an application setting container.- Parameters:
name- the new name
-
getType
Gets a data type for a setting.- Returns:
- the type
-
setType
Sets a data type for a setting.- Parameters:
type- the new type
-
getValue
Gets the value of an application setting.- Returns:
- the value
-
setValue
Sets the value of an application setting.- Parameters:
value- the new value
-