Package org.libvirt
Class TypedParameter
- java.lang.Object
-
- org.libvirt.TypedParameter
-
- Direct Known Subclasses:
TypedBooleanParameter,TypedDoubleParameter,TypedIntParameter,TypedLongParameter,TypedStringParameter,TypedUintParameter,TypedUlongParameter
public abstract class TypedParameter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringfieldParameter nameprotected static intTYPED_PARAM_BOOLEANprotected static intTYPED_PARAM_DOUBLEprotected static intTYPED_PARAM_INTprotected static intTYPED_PARAM_LONGprotected static intTYPED_PARAM_STRINGprotected static intTYPED_PARAM_UINTprotected static intTYPED_PARAM_ULONG
-
Constructor Summary
Constructors Constructor Description TypedParameter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static byte[]copyOf(byte[] original, int length)static TypedParametercreate(virTypedParameter vParam)abstract intgetType()The type of the parameterabstract java.lang.StringgetTypeAsString()Utility function for displaying the typeabstract java.lang.StringgetValueAsString()Utility function for displaying the valuestatic virTypedParametertoNative(TypedParameter param)
-
-
-
Field Detail
-
TYPED_PARAM_INT
protected static final int TYPED_PARAM_INT
- See Also:
- Constant Field Values
-
TYPED_PARAM_UINT
protected static final int TYPED_PARAM_UINT
- See Also:
- Constant Field Values
-
TYPED_PARAM_LONG
protected static final int TYPED_PARAM_LONG
- See Also:
- Constant Field Values
-
TYPED_PARAM_ULONG
protected static final int TYPED_PARAM_ULONG
- See Also:
- Constant Field Values
-
TYPED_PARAM_DOUBLE
protected static final int TYPED_PARAM_DOUBLE
- See Also:
- Constant Field Values
-
TYPED_PARAM_BOOLEAN
protected static final int TYPED_PARAM_BOOLEAN
- See Also:
- Constant Field Values
-
TYPED_PARAM_STRING
protected static final int TYPED_PARAM_STRING
- See Also:
- Constant Field Values
-
field
public java.lang.String field
Parameter name
-
-
Method Detail
-
getType
public abstract int getType()
The type of the parameter- Returns:
- the Type of the parameter
-
getTypeAsString
public abstract java.lang.String getTypeAsString()
Utility function for displaying the type- Returns:
- the Type of the parameter as string
-
getValueAsString
public abstract java.lang.String getValueAsString()
Utility function for displaying the value- Returns:
- the value of the parameter in String form
-
create
public static TypedParameter create(virTypedParameter vParam)
-
toNative
public static virTypedParameter toNative(TypedParameter param)
-
copyOf
public static byte[] copyOf(byte[] original, int length)
-
-