Package org.libvirt
Class TypedStringParameter
- java.lang.Object
-
- org.libvirt.TypedParameter
-
- org.libvirt.TypedStringParameter
-
public final class TypedStringParameter extends TypedParameter
Class for representing a string (char pointer) typed parameter
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
value
-
Fields inherited from class org.libvirt.TypedParameter
field, TYPED_PARAM_BOOLEAN, TYPED_PARAM_DOUBLE, TYPED_PARAM_INT, TYPED_PARAM_LONG, TYPED_PARAM_STRING, TYPED_PARAM_UINT, TYPED_PARAM_ULONG
-
-
Constructor Summary
Constructors Constructor Description TypedStringParameter()
TypedStringParameter(java.lang.String value)
TypedStringParameter(java.lang.String field, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
The type of the parameterjava.lang.String
getTypeAsString()
Utility function for displaying the typejava.lang.String
getValueAsString()
Utility function for displaying the value-
Methods inherited from class org.libvirt.TypedParameter
copyOf, create, toNative
-
-
-
-
Method Detail
-
getType
public int getType()
Description copied from class:TypedParameter
The type of the parameter- Specified by:
getType
in classTypedParameter
- Returns:
- the Type of the parameter
-
getTypeAsString
public java.lang.String getTypeAsString()
Description copied from class:TypedParameter
Utility function for displaying the type- Specified by:
getTypeAsString
in classTypedParameter
- Returns:
- the Type of the parameter as string
-
getValueAsString
public java.lang.String getValueAsString()
Description copied from class:TypedParameter
Utility function for displaying the value- Specified by:
getValueAsString
in classTypedParameter
- Returns:
- the value of the parameter in String form
-
-