| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 --> |
| <title>UnitServices (Apache SIS 1.0 API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2019-09-20"> |
| <meta name="keywords" content="org.apache.sis.measure.UnitServices class"> |
| <meta name="keywords" content="getSystemOfUnits()"> |
| <meta name="keywords" content="getAvailableSystemsOfUnits()"> |
| <meta name="keywords" content="getSystemOfUnitsService()"> |
| <meta name="keywords" content="getUnitFormat()"> |
| <meta name="keywords" content="getAvailableFormatNames()"> |
| <meta name="keywords" content="getUnitFormatService()"> |
| <meta name="keywords" content="getQuantityFactory()"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../sis.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="UnitServices (Apache SIS 1.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = false; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/UnitServices.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.sis.measure</a></div> |
| <h2 title="Class UnitServices" class="title">Class UnitServices</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>UnitServices</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a></code>, <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></code></dd> |
| </dl> |
| <hr> |
| <pre>public class <span class="typeNameLabel">UnitServices</span> |
| extends <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a> |
| implements <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a>, <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></pre> |
| <div class="block">The central point from which all unit services (parsing, formatting, listing, <i>etc</i>) can be obtained. |
| Apache SIS does not use this class (SIS rather uses <a href="Units.html" title="class in org.apache.sis.measure"><code>Units</code></a> pre-defined constants and <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink"><code>UnitFormat</code></a> |
| directly since they are designed specifically for SIS needs). |
| This class is provided for allowing other applications to discover Apache SIS implementation of JSR-363 |
| without direct dependency. A <code>UnitServices</code> instance can be obtained by call to <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#current()" title="class or interface in javax.measure.spi" class="externalLink"><code>ServiceProvider.current()</code></a>.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>0.8</dd> |
| |
| <p><font size="-1">Defined in the <code>sis-utility</code> module</font></p> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">UnitServices</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a new service provider.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAvailableFormatNames()">getAvailableFormatNames</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a list of available format names.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAvailableSystemsOfUnits()">getAvailableSystemsOfUnits</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the list of all available systems of units.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><Q extends <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Quantity.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Quantity</a><Q>><br><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/QuantityFactory.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">QuantityFactory</a><Q></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getQuantityFactory(java.lang.Class)">getQuantityFactory</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><Q> type)</code></th> |
| <td class="colLast"> |
| <div class="block">Return a factory for the given <code>Quantity</code> type.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSystemOfUnits()">getSystemOfUnits</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the default system of units used by Apache SIS.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSystemOfUnits(java.lang.String)">getSystemOfUnits</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> name)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the system of units having the specified name, or <code>null</code> if none.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSystemOfUnitsService()">getSystemOfUnitsService</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink"><code>SystemOfUnits</code></a> instances.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink">UnitFormat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUnitFormat()">getUnitFormat</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns an unit format instance for human-readable unit symbols in the default locale.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink">UnitFormat</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUnitFormat(java.lang.String)">getUnitFormat</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> name)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the unit format for the given name.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUnitFormatService()">getUnitFormatService</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink"><code>UnitFormat</code></a> instances.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.ServiceProvider"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a></h3> |
| <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#available()" title="class or interface in javax.measure.spi" class="externalLink">available</a>, <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#current()" title="class or interface in javax.measure.spi" class="externalLink">current</a>, <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#getPriority()" title="class or interface in javax.measure.spi" class="externalLink">getPriority</a>, <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#setCurrent(javax.measure.spi.ServiceProvider)" title="class or interface in javax.measure.spi" class="externalLink">setCurrent</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>UnitServices</h4> |
| <pre>public UnitServices()</pre> |
| <div class="block">Creates a new service provider. <code>UnitServices</code> should not be instantiated |
| directly unless the caller wants specifically the Apache SIS implementation. |
| For obtaining the default implementation, use <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#current()" title="class or interface in javax.measure.spi" class="externalLink"><code>ServiceProvider.current()</code></a> instead.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="getSystemOfUnits()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSystemOfUnits</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a> getSystemOfUnits()</pre> |
| <div class="block">Returns the default system of units used by Apache SIS. |
| This include the International System of Units (SI) together with some imperial units and other units. |
| This system includes at least all the constants defined in the <a href="Units.html" title="class in org.apache.sis.measure"><code>Units</code></a> class.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true#getSystemOfUnits()" title="class or interface in javax.measure.spi" class="externalLink">getSystemOfUnits</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the system of units used by Apache SIS.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getSystemOfUnits(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSystemOfUnits</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a> getSystemOfUnits​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> name)</pre> |
| <div class="block">Returns the system of units having the specified name, or <code>null</code> if none. |
| The argument can be any name in the following table: |
| |
| <table class="sis"> |
| <caption>Available system of units</caption> |
| <tr><th>Name</th> <th>Examples</th></tr> |
| <tr><td>SI</td> <td>m, km, m³, s, m∕s, K, °C, hPa, rad, µrad</td></tr> |
| <tr><td>SI + accepted</td> <td>s, min, h, m∕s, km∕h, °, ′, ″, ha</td></tr> |
| <tr><td>Imperial</td> <td>in, ft, mi (statute mile)</td></tr> |
| <tr><td>SI + other</td> <td>m, m∕s, km∕h, ft, mi, M (nautical mile)</td></tr> |
| </table> |
| |
| The search for name is case-insensitive and ignore whitespaces.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true#getSystemOfUnits(java.lang.String)" title="class or interface in javax.measure.spi" class="externalLink">getSystemOfUnits</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the name of the desired system of units.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the system of units for the given name, or <code>null</code> if none.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAvailableSystemsOfUnits()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailableSystemsOfUnits</h4> |
| <pre class="methodSignature">public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink">Collection</a><<a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnits</a>> getAvailableSystemsOfUnits()</pre> |
| <div class="block">Returns the list of all available systems of units.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true#getAvailableSystemsOfUnits()" title="class or interface in javax.measure.spi" class="externalLink">getAvailableSystemsOfUnits</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of available systems of units.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getSystemOfUnitsService()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSystemOfUnitsService</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnitsService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">SystemOfUnitsService</a> getSystemOfUnitsService()</pre> |
| <div class="block">Returns the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink"><code>SystemOfUnits</code></a> instances. |
| The default implementation returns <code>this</code> since this <code>UnitServices</code> class |
| implements directly all relevant interfaces. The methods related to system of units are: |
| |
| <ul> |
| <li><a href="#getSystemOfUnits()"><code>getSystemOfUnits()</code></a></li> |
| <li><a href="#getSystemOfUnits(java.lang.String)"><code>getSystemOfUnits(String)</code></a></li> |
| <li><a href="#getAvailableSystemsOfUnits()"><code>getAvailableSystemsOfUnits()</code></a></li> |
| </ul></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#getSystemOfUnitsService()" title="class or interface in javax.measure.spi" class="externalLink">getSystemOfUnitsService</a></code> in class <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/SystemOfUnits.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink"><code>SystemOfUnits</code></a>, or <code>null</code> if none.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getUnitFormat()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnitFormat</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink">UnitFormat</a> getUnitFormat()</pre> |
| <div class="block">Returns an unit format instance for human-readable unit symbols in the default locale. |
| The format style is <a href="UnitFormat.Style.html#SYMBOL"><code>UnitFormat.Style.SYMBOL</code></a>. |
| This style requires support for Unicode characters; |
| for example square metres are formatted as “m²”, not “m2”.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true#getUnitFormat()" title="class or interface in javax.measure.spi" class="externalLink">getUnitFormat</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a <a href="UnitFormat.html" title="class in org.apache.sis.measure"><code>UnitFormat</code></a> instance for unit symbols.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getUnitFormat(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnitFormat</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink">UnitFormat</a> getUnitFormat​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> name)</pre> |
| <div class="block">Returns the unit format for the given name. The argument can be the name of |
| any value in the <a href="UnitFormat.Style.html" title="enum in org.apache.sis.measure"><code>UnitFormat.Style</code></a> enumeration. |
| The argument can be any name in the following table: |
| |
| <table class="sis"> |
| <caption>Available unit format name</caption> |
| <tr><th>Name</th> <th>Examples</th></tr> |
| <tr><td>SYMBOL</td> <td>km, m³, m∕s, N⋅m, K, °C, hPa, rad, µrad</td></tr> |
| <tr><td>UCUM</td> <td>km, m3, m/s, N.m</td></tr> |
| <tr><td>NAME</td> <td>kilometre, cubic metre, metres per second</td></tr> |
| </table> |
| |
| The <code>"NAME"</code> format is locale-sensitive. The format locale can be modified by a call |
| to <a href="UnitFormat.html#setLocale(java.util.Locale)"><code>UnitFormat.setLocale(Locale)</code></a> on the returned object.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true#getUnitFormat(java.lang.String)" title="class or interface in javax.measure.spi" class="externalLink">getUnitFormat</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the name of the desired format.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the corresponding unit format, or <code>null</code> if none.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAvailableFormatNames()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAvailableFormatNames</h4> |
| <pre class="methodSignature">public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util" class="externalLink">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>> getAvailableFormatNames()</pre> |
| <div class="block">Returns a list of available format names. The default implementation returns the names |
| of all values in the <a href="UnitFormat.Style.html" title="enum in org.apache.sis.measure"><code>UnitFormat.Style</code></a> enumeration.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true#getAvailableFormatNames()" title="class or interface in javax.measure.spi" class="externalLink">getAvailableFormatNames</a></code> in interface <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of available formats.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getUnitFormatService()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUnitFormatService</h4> |
| <pre class="methodSignature">public <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/UnitFormatService.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">UnitFormatService</a> getUnitFormatService()</pre> |
| <div class="block">Returns the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink"><code>UnitFormat</code></a> instances. |
| The default implementation returns <code>this</code> since this <code>UnitServices</code> class |
| implements directly all relevant interfaces. The methods related to unit formats are: |
| |
| <ul> |
| <li><a href="#getUnitFormat()"><code>getUnitFormat()</code></a></li> |
| <li><a href="#getUnitFormat(java.lang.String)"><code>getUnitFormat(String)</code></a></li> |
| <li><a href="#getAvailableFormatNames()"><code>getAvailableFormatNames()</code></a></li> |
| </ul></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#getUnitFormatService()" title="class or interface in javax.measure.spi" class="externalLink">getUnitFormatService</a></code> in class <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service to obtain a <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/format/UnitFormat.html?is-external=true" title="class or interface in javax.measure.format" class="externalLink"><code>UnitFormat</code></a>, or <code>null</code> if none.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getQuantityFactory(java.lang.Class)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getQuantityFactory</h4> |
| <pre class="methodSignature">public <Q extends <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Quantity.html?is-external=true" title="class or interface in javax.measure" class="externalLink">Quantity</a><Q>> <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/QuantityFactory.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">QuantityFactory</a><Q> getQuantityFactory​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a><Q> type)</pre> |
| <div class="block">Return a factory for the given <code>Quantity</code> type. In the particular case of Apache SIS implementation, |
| <a href="Quantities.html#create(double,javax.measure.Unit)"><code>Quantities.create(double, Unit)</code></a> provides a more direct way to instantiate quantities.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true#getQuantityFactory(java.lang.Class)" title="class or interface in javax.measure.spi" class="externalLink">getQuantityFactory</a></code> in class <code><a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/spi/ServiceProvider.html?is-external=true" title="class or interface in javax.measure.spi" class="externalLink">ServiceProvider</a></code></dd> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>Q</code> - compile-time value of the <code>type</code> argument.</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - type of the desired the quantity.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service to obtain <a href="http://unitsofmeasurement.github.io/unit-api/site/apidocs/javax/measure/Quantity.html?is-external=true" title="class or interface in javax.measure" class="externalLink"><code>Quantity</code></a> instances, or <code>null</code> if none.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="Quantities.html#create(double,javax.measure.Unit)"><code>Quantities.create(double, Unit)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/UnitServices.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2010–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |