Package org.libvirt
Class TypedParameter
java.lang.Object
org.libvirt.TypedParameter
- Direct Known Subclasses:
TypedBooleanParameter,TypedDoubleParameter,TypedIntParameter,TypedLongParameter,TypedStringParameter,TypedUintParameter,TypedUlongParameter
-
Field Summary
FieldsModifier and TypeFieldDescriptionParameter nameprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]copyOf(byte[] original, int length) static TypedParametercreate(virTypedParameter vParam) static TypedParameter[]fromPointer(com.sun.jna.Pointer ptr, int n) abstract intgetType()The type of the parameterabstract StringUtility function for displaying the typeabstract StringUtility function for displaying the valuestatic virTypedParametertoNative(TypedParameter param)
-
Field Details
-
TYPED_PARAM_INT
protected static final int TYPED_PARAM_INT- See Also:
-
TYPED_PARAM_UINT
protected static final int TYPED_PARAM_UINT- See Also:
-
TYPED_PARAM_LONG
protected static final int TYPED_PARAM_LONG- See Also:
-
TYPED_PARAM_ULONG
protected static final int TYPED_PARAM_ULONG- See Also:
-
TYPED_PARAM_DOUBLE
protected static final int TYPED_PARAM_DOUBLE- See Also:
-
TYPED_PARAM_BOOLEAN
protected static final int TYPED_PARAM_BOOLEAN- See Also:
-
TYPED_PARAM_STRING
protected static final int TYPED_PARAM_STRING- See Also:
-
field
Parameter name
-
-
Constructor Details
-
TypedParameter
public TypedParameter()
-
-
Method Details
-
getType
public abstract int getType()The type of the parameter- Returns:
- the Type of the parameter
-
getTypeAsString
Utility function for displaying the type- Returns:
- the Type of the parameter as string
-
getValueAsString
Utility function for displaying the value- Returns:
- the value of the parameter in String form
-
create
-
toNative
-
copyOf
public static byte[] copyOf(byte[] original, int length) -
fromPointer
-