org.ogre4j
Class UTFString

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

public class UTFString
extends NativeObject
implements IUTFString


Nested Class Summary
static class UTFString._base_iterator
           
static class UTFString._const_fwd_iterator
           
static class UTFString._const_rev_iterator
           
static class UTFString._fwd_iterator
           
static class UTFString._rev_iterator
           
static class UTFString.dstring
           
static class UTFString.invalid_data
           
static class UTFString.utf32string
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IUTFString
IUTFString.I_base_iterator, IUTFString.I_const_fwd_iterator, IUTFString.I_const_rev_iterator, IUTFString.I_fwd_iterator, IUTFString.I_rev_iterator, IUTFString.Idstring, IUTFString.Iinvalid_data, IUTFString.Iutf32string
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  UTFString()
           
  UTFString(InstancePointer p)
          This constructor is public for internal useage only!
protected UTFString(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  UTFString(java.lang.String str)
          Manually created Method to allow usage of IOverlayElement.setCaption(IUTFString).
  UTFString(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IUTFString assign(java.lang.String str)
          Sets value of this UTF String to str.
 java.lang.String asUTF8()
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
static int getnpos()
           
 
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

UTFString

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


UTFString

protected UTFString(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.


UTFString

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

UTFString

public UTFString()

UTFString

public UTFString(java.lang.String str)
Manually created Method to allow usage of IOverlayElement.setCaption(IUTFString).

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

getnpos

public static int getnpos()

assign

public IUTFString assign(java.lang.String str)
Description copied from interface: IUTFString
Sets value of this UTF String to str.

Specified by:
assign in interface IUTFString
Parameters:
str - New value to set.
Returns:
this.

asUTF8

public java.lang.String asUTF8()
Specified by:
asUTF8 in interface IUTFString
Returns:
Value of this UTF String.


Copyright © 2007 netAllied GmbH. All Rights Reserved.