Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.util
Class NumberFormat

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.util.NumberFormat
All Implemented Interfaces:
INumberFormat

public class NumberFormat
extends java.lang.Object
implements INumberFormat

Number format.


Constructor Summary
NumberFormat(int formatKey, com.sun.star.beans.XPropertySet xPropertySet, INumberFormatService numberFormatService)
          Constructs new NumberFormat.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns whether some other object is "equal to" this one.
 java.lang.String getExample()
          Returns an example string.
 int getFormatKey()
          Returns format key.
 java.lang.String getFormatPattern()
          Returns format pattern.
 short getFormatType()
          Returns format type as constants of NumberFormat.
 IJavaNumberFormat getJavaNumberFormat()
          Returns number format for java code.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberFormat

public NumberFormat(int formatKey,
                    com.sun.star.beans.XPropertySet xPropertySet,
                    INumberFormatService numberFormatService)
             throws java.lang.IllegalArgumentException
Constructs new NumberFormat.

Parameters:
formatKey - the key of the format
xPropertySet - OpenOffice.org XPropertySet interface
numberFormatService - the number format service the format was created with
Throws:
java.lang.IllegalArgumentException - if the submitted OpenOffice.org XPropertySet interface is not valid
Method Detail

getFormatKey

public int getFormatKey()
Returns format key.

Specified by:
getFormatKey in interface INumberFormat
Returns:
format key

getFormatType

public short getFormatType()
Returns format type as constants of NumberFormat.

Specified by:
getFormatType in interface INumberFormat
Returns:
format type as constants of NumberFormat

getExample

public java.lang.String getExample()
                            throws UtilException
Returns an example string.

Specified by:
getExample in interface INumberFormat
Returns:
an example string
Throws:
UtilException - if returning the example fails

getFormatPattern

public java.lang.String getFormatPattern()
Returns format pattern.

Specified by:
getFormatPattern in interface INumberFormat
Returns:
format pattern

getJavaNumberFormat

public IJavaNumberFormat getJavaNumberFormat()
                                      throws UtilException
Returns number format for java code.

Specified by:
getJavaNumberFormat in interface INumberFormat
Returns:
number format for java code
Throws:
UtilException - if no suitable number format is available

equals

public boolean equals(java.lang.Object obj)
Returns whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Returns:
whether some other object is "equal to" this one

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013