org.ogre4j
Class StringConverter

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.StringConverter
All Implemented Interfaces:
IStringConverter, INativeObject

public class StringConverter
extends NativeObject
implements IStringConverter


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  StringConverter()
           
  StringConverter(InstancePointer p)
          This constructor is public for internal useage only!
protected StringConverter(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  StringConverter(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
static boolean isNumber(java.lang.String val)
          Checks the String is a valid number value.
static void parseAngle(IRadian returnValue, java.lang.String val)
          Converts a String to a .
static boolean parseBool(java.lang.String val)
          Converts a String to a boolean.
static void parseColourValue(IColourValue returnValue, java.lang.String val)
          Parses a out of a String.
static int parseInt(java.lang.String val)
          Converts a String to a whole number.
static long parseLong(java.lang.String val)
          Converts a String to a whole number.
static void parseMatrix3(IMatrix3 returnValue, java.lang.String val)
          Parses a out of a String.
static void parseMatrix4(IMatrix4 returnValue, java.lang.String val)
          Parses a out of a String.
static void parseQuaternion(IQuaternion returnValue, java.lang.String val)
          Parses a out of a String.
static float parseReal(java.lang.String val)
          Converts a String to a Real.
static void parseStringVector(IStringVector returnValue, java.lang.String val)
          Pareses a StringVector from a string.
static long parseUnsignedInt(java.lang.String val)
          Converts a String to a whole number.
static long parseUnsignedLong(java.lang.String val)
          Converts a String to a whole number.
static void parseVector2(IVector2 returnValue, java.lang.String val)
          Parses a out of a String.
static void parseVector3(IVector3 returnValue, java.lang.String val)
          Parses a out of a String.
static void parseVector4(IVector4 returnValue, java.lang.String val)
          Parses a out of a String.
static java.lang.String toString__ivHvcvstd_ios_fmtflagsv(int val, int width, short fill, ios.fmtflags flags)
           
static java.lang.String toString__lvHvcvstd_ios_fmtflagsv(long val, int width, short fill, ios.fmtflags flags)
           
static java.lang.String toString(boolean val, boolean yesNo)
          Converts a boolean to a String.
static java.lang.String toString(float val, int precision, int width, short fill, ios.fmtflags flags)
          Converts a Real to a String.
static java.lang.String toString(IColourValue val)
          Converts a to a String.
static java.lang.String toString(IDegree val, int precision, int width, short fill, ios.fmtflags flags)
          Converts a to a String.
static java.lang.String toString(IMatrix3 val)
          Converts a to a String.
static java.lang.String toString(IMatrix4 val)
          Converts a to a String.
static java.lang.String toString(int val, int width, short fill, ios.fmtflags flags)
          Converts an int to a String.
static java.lang.String toString(IQuaternion val)
          Converts a to a String.
static java.lang.String toString(IRadian val, int precision, int width, short fill, ios.fmtflags flags)
          Converts a to a String.
static java.lang.String toString(IStringVector val)
          Converts a StringVector to a string.
static java.lang.String toString(IVector2 val)
          Converts a to a String.
static java.lang.String toString(IVector3 val)
          Converts a to a String.
static java.lang.String toString(IVector4 val)
          Converts a to a String.
static java.lang.String toString(long val, int width, short fill, ios.fmtflags flags)
          Converts an unsigned long to a String.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

StringConverter

public StringConverter(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


StringConverter

protected StringConverter(InstancePointer p,
                          boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


StringConverter

public StringConverter(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

StringConverter

public StringConverter()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

toString

public static java.lang.String toString(float val,
                                        int precision,
                                        int width,
                                        short fill,
                                        ios.fmtflags flags)
Converts a Real to a String.


toString

public static java.lang.String toString(IRadian val,
                                        int precision,
                                        int width,
                                        short fill,
                                        ios.fmtflags flags)
Converts a to a String.


toString

public static java.lang.String toString(IDegree val,
                                        int precision,
                                        int width,
                                        short fill,
                                        ios.fmtflags flags)
Converts a to a String.


toString

public static java.lang.String toString(int val,
                                        int width,
                                        short fill,
                                        ios.fmtflags flags)
Converts an int to a String.


toString__ivHvcvstd_ios_fmtflagsv

public static java.lang.String toString__ivHvcvstd_ios_fmtflagsv(int val,
                                                                 int width,
                                                                 short fill,
                                                                 ios.fmtflags flags)

toString

public static java.lang.String toString(long val,
                                        int width,
                                        short fill,
                                        ios.fmtflags flags)
Converts an unsigned long to a String.


toString__lvHvcvstd_ios_fmtflagsv

public static java.lang.String toString__lvHvcvstd_ios_fmtflagsv(long val,
                                                                 int width,
                                                                 short fill,
                                                                 ios.fmtflags flags)

toString

public static java.lang.String toString(boolean val,
                                        boolean yesNo)
Converts a boolean to a String.


toString

public static java.lang.String toString(IVector2 val)
Converts a to a String.


toString

public static java.lang.String toString(IVector3 val)
Converts a to a String.


toString

public static java.lang.String toString(IVector4 val)
Converts a to a String.


toString

public static java.lang.String toString(IMatrix3 val)
Converts a to a String.


toString

public static java.lang.String toString(IMatrix4 val)
Converts a to a String.


toString

public static java.lang.String toString(IQuaternion val)
Converts a to a String.


toString

public static java.lang.String toString(IColourValue val)
Converts a to a String.


toString

public static java.lang.String toString(IStringVector val)
Converts a StringVector to a string.


parseReal

public static float parseReal(java.lang.String val)
Converts a String to a Real.


parseAngle

public static void parseAngle(IRadian returnValue,
                              java.lang.String val)
Converts a String to a .


parseInt

public static int parseInt(java.lang.String val)
Converts a String to a whole number.


parseUnsignedInt

public static long parseUnsignedInt(java.lang.String val)
Converts a String to a whole number.


parseLong

public static long parseLong(java.lang.String val)
Converts a String to a whole number.


parseUnsignedLong

public static long parseUnsignedLong(java.lang.String val)
Converts a String to a whole number.


parseBool

public static boolean parseBool(java.lang.String val)
Converts a String to a boolean.


parseVector2

public static void parseVector2(IVector2 returnValue,
                                java.lang.String val)
Parses a out of a String.


parseVector3

public static void parseVector3(IVector3 returnValue,
                                java.lang.String val)
Parses a out of a String.


parseVector4

public static void parseVector4(IVector4 returnValue,
                                java.lang.String val)
Parses a out of a String.


parseMatrix3

public static void parseMatrix3(IMatrix3 returnValue,
                                java.lang.String val)
Parses a out of a String.


parseMatrix4

public static void parseMatrix4(IMatrix4 returnValue,
                                java.lang.String val)
Parses a out of a String.


parseQuaternion

public static void parseQuaternion(IQuaternion returnValue,
                                   java.lang.String val)
Parses a out of a String.


parseColourValue

public static void parseColourValue(IColourValue returnValue,
                                    java.lang.String val)
Parses a out of a String.


parseStringVector

public static void parseStringVector(IStringVector returnValue,
                                     java.lang.String val)
Pareses a StringVector from a string.


isNumber

public static boolean isNumber(java.lang.String val)
Checks the String is a valid number value.



Copyright © 2007 netAllied GmbH. All Rights Reserved.