Codota Logo
XSDByte
Code IndexAdd Codota to your IDE (free)

How to use
XSDByte
in
openllet.core.datatypes.types.real

Best Java code snippets using openllet.core.datatypes.types.real.XSDByte (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: Galigator/openllet

  @Override
  protected Number fromLexicalForm(final String lexicalForm) throws InvalidLiteralException
  {
    try
    {
      final int n = DatatypeConverter.parseInt(lexicalForm);
      if (n < Byte.MIN_VALUE || n > Byte.MAX_VALUE)
        throw new InvalidLiteralException(getName(), lexicalForm);
      return Byte.valueOf((byte) n);
    }
    catch (final NumberFormatException e)
    {
      throw new InvalidLiteralException(getName(), lexicalForm, e);
    }
  }
}
origin: Galigator/openllet

kb.addRange(p, ATermUtils.makeRestrictedDatatype(XSDInteger.getInstance().getName(), new ATermAppl[] { ATermUtils.makeFacetRestriction(Facet.XSD.MIN_INCLUSIVE.getName(), ATermUtils.makeTypedLiteral(Byte.toString(MIN), XSDByte.getInstance().getName())), ATermUtils.makeFacetRestriction(Facet.XSD.MAX_INCLUSIVE.getName(), ATermUtils.makeTypedLiteral(Byte.toString(MAX), XSDByte.getInstance().getName())) }));
origin: Galigator/openllet

  @Override
  protected Number fromLexicalForm(final String lexicalForm) throws InvalidLiteralException
  {
    try
    {
      final int n = DatatypeConverter.parseInt(lexicalForm);
      if (n < Byte.MIN_VALUE || n > Byte.MAX_VALUE)
        throw new InvalidLiteralException(getName(), lexicalForm);
      return Byte.valueOf((byte) n);
    }
    catch (final NumberFormatException e)
    {
      throw new InvalidLiteralException(getName(), lexicalForm, e);
    }
  }
}
openllet.core.datatypes.types.realXSDByte

Javadoc

Title: xsd:byte

Description: Singleton implementation of xsd:byte datatype

Copyright: Copyright (c) 2009

Company: Clark & Parsia, LLC.

Most used methods

  • getName
  • getInstance

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now