Example usage for java.math BigInteger toString

List of usage examples for java.math BigInteger toString

Introduction

In this page you can find the example usage for java.math BigInteger toString.

Prototype

public String toString() 

Source Link

Document

Returns the decimal String representation of this BigInteger.

Usage

From source file:org.openspotlight.graph.internal.NodeAndLinkSupport.java

private static void setWeigthAndTypeOnNode(final StorageSession session, final StorageNode node,
        final Class<? extends Node> type, final BigInteger weightFromTargetNodeType) {
    node.setIndexedProperty(session, NUMERIC_TYPE, weightFromTargetNodeType.toString());
    node.setIndexedProperty(session, CORRECT_CLASS, type.getName());

}

From source file:net.sourceforge.msscodefactory.v1_10.MSSBamMssCF.MSSBamMssCFBindUInt64DefMaxValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefMaxValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from   ww  w  . j a va 2 s  . c  o  m*/

    IMssCFAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger maxValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalMaxValue();
        if (maxValue == null) {
            ret = null;
        } else {
            ret = maxValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_10.MSSBamMssCF.MSSBamMssCFBindUInt64DefMinValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefMinValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from  w w  w .  ja  v  a 2  s. c  o m

    IMssCFAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger minValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalMinValue();
        if (minValue == null) {
            ret = null;
        } else {
            ret = minValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_11.MSSBamMssCF.MSSBamMssCFBindUInt64DefMaxValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefMaxValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//  ww  w .  ja  va 2s  .  co  m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger maxValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalMaxValue();
        if (maxValue == null) {
            ret = null;
        } else {
            ret = maxValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_11.MSSBamMssCF.MSSBamMssCFBindUInt64DefMinValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefMinValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from  w w w.  j  a va  2 s.  c  o m*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger minValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalMinValue();
        if (minValue == null) {
            ret = null;
        } else {
            ret = minValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_10.MSSBamMssCF.MSSBamMssCFBindUInt64DefInitValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefInitValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/* w  ww .  j ava2 s .  c  o m*/

    IMssCFAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger initValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalInitValue();
        if (initValue == null) {
            ret = null;
        } else {
            ret = initValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_10.MSSBamMssCF.MSSBamMssCFBindUInt64DefNullValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefNullValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from   w  w w .  ja  v  a 2  s  .  c o  m

    IMssCFAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger nullValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalNullValue();
        if (nullValue == null) {
            ret = null;
        } else {
            ret = nullValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_11.MSSBamMssCF.MSSBamMssCFBindUInt64DefInitValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefInitValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//from w  ww  . j a v  a2s.  c  o m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger initValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalInitValue();
        if (initValue == null) {
            ret = null;
        } else {
            ret = initValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_11.MSSBamMssCF.MSSBamMssCFBindUInt64DefNullValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefNullValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//www . ja v  a 2 s.  c o  m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger nullValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalNullValue();
        if (nullValue == null) {
            ret = null;
        } else {
            ret = nullValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.v1_10.MSSBamMssCF.MSSBamMssCFBindUInt64DefDefaultValue.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "MSSBamMssCFBindUInt64DefDefaultValue.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*  w  w w.j  a  va2s. co  m*/

    IMssCFAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof IMSSBamBLUInt64DefObj) {
        BigInteger defaultValue = ((IMSSBamBLUInt64DefObj) genDef).getOptionalDefaultValue();
        if (defaultValue == null) {
            ret = null;
        } else {
            ret = defaultValue.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "IMSSBamBLUInt64DefObj");
    }

    return (ret);
}