Tabnine Logo
ModelNode.asBigInteger
Code IndexAdd Tabnine to your IDE (free)

How to use
asBigInteger
method
in
org.jboss.dmr.ModelNode

Best Java code snippets using org.jboss.dmr.ModelNode.asBigInteger (Showing top 20 results out of 315)

origin: org.jboss.as/jboss-as-jmx

Object fromModelNode(final ModelNode node) {
  return node.asBigInteger();
}
origin: org.wildfly/wildfly-jmx

Object fromModelNode(final ModelNode node) {
  return node.asBigInteger();
}
origin: wildfly/wildfly-core

Object fromModelNode(final ModelNode node) {
  return node.asBigInteger();
}
origin: org.gatein.management/gatein-management-core

@Override
public BigInteger getBigInteger()
{
 if (!isDefined()) return null;
 return value.asBigInteger();
}
origin: wildfly/wildfly-core

  public String validate(ModelType currentType, ModelNode currentNode, String descriptor) {
    if (currentNode.hasDefined(descriptor)) {
      if (currentType != ModelType.BIG_DECIMAL && currentType != ModelType.BIG_INTEGER &&
          currentType != ModelType.DOUBLE && currentType != ModelType.INT && currentType != ModelType.LONG) {
        return "Unnecessary '" + descriptor + "' for non-numeric type=" + currentType;
      }
      if (!descriptor.equals(UNIT)) {
        try {
          if (currentType == ModelType.BIG_DECIMAL) {
            currentNode.get(descriptor).asBigDecimal();
          } else if (currentType == ModelType.BIG_INTEGER) {
            currentNode.get(descriptor).asBigInteger();
          } else if (currentType == ModelType.DOUBLE) {
            currentNode.get(descriptor).asDouble();
          } else if (currentType == ModelType.INT) {
            currentNode.get(descriptor).asInt();
          } else if (currentType == ModelType.LONG) {
            currentNode.get(descriptor).asLong();
          }
        } catch (Exception e) {
          return "'" + descriptor + "' is not a " + currentType;
        }
      }
    }
    return null;
  }
}
origin: com.openshift/openshift-restclient-java

  break;
case BIG_INTEGER:
  list.add(entry.asBigInteger());
  break;
case BIG_DECIMAL:
origin: openshift/openshift-restclient-java

  break;
case BIG_INTEGER:
  list.add(entry.asBigInteger());
  break;
case BIG_DECIMAL:
origin: com.openshift/openshift-restclient-java

  break;
case BIG_INTEGER:
  result.put(key, value.asBigInteger());
  break;
case BIG_DECIMAL:
origin: openshift/openshift-restclient-java

  break;
case BIG_INTEGER:
  result.put(key, value.asBigInteger());
  break;
case BIG_DECIMAL:
origin: wildfly/wildfly-core

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: org.jboss.as/jboss-as-controller

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: org.jboss.as/jboss-as-controller

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: org.wildfly/wildfly-controller

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: org.wildfly/wildfly-controller

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: org.wildfly/wildfly-controller

  break;
case BIG_INTEGER:
  node.set(node.asBigInteger());
  break;
case BOOLEAN:
origin: wildfly/wildfly-core

private static Object object(ModelNode node) {
  switch (node.getType()) {
    case BIG_DECIMAL:
      return node.asBigDecimal();
    case BIG_INTEGER:
      return node.asBigInteger();
    case BOOLEAN:
      return node.asBoolean();
    case BYTES:
      return node.asBytes();
    case DOUBLE:
      return node.asDouble();
    case EXPRESSION:
      return node.asExpression();
    case INT:
      return node.asInt();
    case LIST:
      return node.asList();
    case LONG:
      return node.asLong();
    case PROPERTY:
      return node.asProperty();
    case STRING:
      return node.asString();
    case UNDEFINED:
      return null;
    default:
      throw new UnsupportedOperationException("Can't convert '" + node.getType() + "' to object");
  }
}
origin: wildfly/wildfly-core

  break;
case BIG_INTEGER:
  resolved.asBigInteger();
  break;
case BOOLEAN:
origin: ModeShape/modeshape

  return node.asBigDecimal();
case BIG_INTEGER:
  return node.asBigInteger();
case BOOLEAN:
  return node.asBoolean();
origin: org.jboss.as/jboss-as-controller

  break;
case BIG_INTEGER:
  value.resolve().asBigInteger();
  break;
case BOOLEAN:
origin: org.wildfly/wildfly-controller

  break;
case BIG_INTEGER:
  value.resolve().asBigInteger();
  break;
case BOOLEAN:
org.jboss.dmrModelNodeasBigInteger

Popular methods of ModelNode

  • get
  • <init>
  • set
  • asString
  • add
  • isDefined
  • hasDefined
  • asList
  • asBoolean
  • asPropertyList
  • asInt
  • require
  • asInt,
  • require,
  • setEmptyList,
  • getType,
  • clone,
  • keys,
  • setEmptyObject,
  • has,
  • asProperty,
  • asLong

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now