<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!-- NewPage --> | |
<html lang="en"> | |
<head> | |
<!-- Generated by javadoc (1.8.0_92) on Mon Aug 13 15:36:31 CEST 2018 --> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>EdmPrimitiveType (Olingo-OData 4.5.0 API)</title> | |
<meta name="date" content="2018-08-13"> | |
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> | |
<script type="text/javascript" src="../../../../../../script.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"><!-- | |
try { | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="EdmPrimitiveType (Olingo-OData 4.5.0 API)"; | |
} | |
} | |
catch(err) { | |
} | |
//--> | |
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6}; | |
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; | |
var altColor = "altColor"; | |
var rowColor = "rowColor"; | |
var tableTab = "tableTab"; | |
var activeTableTab = "activeTableTab"; | |
</script> | |
<noscript> | |
<div>JavaScript is disabled on your browser.</div> | |
</noscript> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<div class="topNav"><a name="navbar.top"> | |
<!-- --> | |
</a> | |
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> | |
<a name="navbar.top.firstrow"> | |
<!-- --> | |
</a> | |
<ul class="navList" title="Navigation"> | |
<li><a href="../../../../../../overview-summary.html">Overview</a></li> | |
<li><a href="package-summary.html">Package</a></li> | |
<li class="navBarCell1Rev">Class</li> | |
<li><a href="class-use/EdmPrimitiveType.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"> | |
<li><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmParameter.html" title="interface in org.apache.olingo.commons.api.edm"><span class="typeNameLink">Prev Class</span></a></li> | |
<li><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../../../../index.html?org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" target="_top">Frames</a></li> | |
<li><a href="EdmPrimitiveType.html" target="_top">No Frames</a></li> | |
</ul> | |
<ul class="navList" id="allclasses_navbar_top"> | |
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></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> | |
</div> | |
<div> | |
<ul class="subNavList"> | |
<li>Summary: </li> | |
<li>Nested | </li> | |
<li><a href="#field.summary">Field</a> | </li> | |
<li>Constr | </li> | |
<li><a href="#method.summary">Method</a></li> | |
</ul> | |
<ul class="subNavList"> | |
<li>Detail: </li> | |
<li><a href="#field.detail">Field</a> | </li> | |
<li>Constr | </li> | |
<li><a href="#method.detail">Method</a></li> | |
</ul> | |
</div> | |
<a name="skip.navbar.top"> | |
<!-- --> | |
</a></div> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<div class="header"> | |
<div class="subTitle">org.apache.olingo.commons.api.edm</div> | |
<h2 title="Interface EdmPrimitiveType" class="title">Interface EdmPrimitiveType</h2> | |
</div> | |
<div class="contentContainer"> | |
<div class="description"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<dl> | |
<dt>All Superinterfaces:</dt> | |
<dd><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmNamed.html" title="interface in org.apache.olingo.commons.api.edm">EdmNamed</a>, <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html" title="interface in org.apache.olingo.commons.api.edm">EdmType</a></dd> | |
</dl> | |
<dl> | |
<dt>All Known Subinterfaces:</dt> | |
<dd><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmEnumType.html" title="interface in org.apache.olingo.commons.api.edm">EdmEnumType</a>, <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmTypeDefinition.html" title="interface in org.apache.olingo.commons.api.edm">EdmTypeDefinition</a></dd> | |
</dl> | |
<hr> | |
<br> | |
<pre>public interface <span class="typeNameLabel">EdmPrimitiveType</span> | |
extends <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html" title="interface in org.apache.olingo.commons.api.edm">EdmType</a></pre> | |
<div class="block">EdmPrimitiveType is a primitive type as defined in the Entity Data Model (EDM). | |
<br/> | |
There are methods to convert EDM primitive types from and to Java objects, respectively. The following Java types are | |
supported: | |
<table frame="hsides" rules="groups"> | |
<thead> | |
<tr><th>EDM primitive type</th><th>Java types</th></tr> | |
</thead> | |
<tbody> | |
<tr><td>Binary</td><td>byte[], <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>[]</td></tr> | |
<tr><td>Boolean</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a></td></tr> | |
<tr><td>Byte</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> | |
</td></tr> | |
<tr><td>Date</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><code>Calendar</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Timestamp.html?is-external=true" title="class or interface in java.sql"><code>Timestamp</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql"><code>Time</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>DateTimeOffset</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Timestamp.html?is-external=true" title="class or interface in java.sql"><code>Timestamp</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><code>Calendar</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql"><code>Time</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>Decimal</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang"><code>Double</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang"><code>Float</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>Double</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang"><code>Double</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang"><code>Float</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>Duration</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang"><code>Double</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang"><code>Float</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>Guid</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a></td></tr> | |
<tr><td>Int16</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> | |
</td></tr> | |
<tr><td>Int32</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> | |
</td></tr> | |
<tr><td>Int64</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> | |
</td></tr> | |
<tr><td>SByte</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> | |
</td></tr> | |
<tr><td>Single</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang"><code>Float</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang"><code>Double</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Byte.html?is-external=true" title="class or interface in java.lang"><code>Byte</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Short.html?is-external=true" title="class or interface in java.lang"><code>Short</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang"><code>Integer</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
<tr><td>String</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a></td></tr> | |
<tr><td>TimeOfDay</td><td><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><code>Calendar</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Timestamp.html?is-external=true" title="class or interface in java.sql"><code>Timestamp</code></a>, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/sql/Time.html?is-external=true" title="class or interface in java.sql"><code>Time</code></a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang"><code>Long</code></a></td></tr> | |
</tbody> | |
</table> | |
<p> | |
The first Java type is the default type for the respective EDM primitive type. | |
</p> | |
<p> | |
For all EDM primitive types, the <code>Nullable</code> facet is taken into account. For <code>Binary</code> and | |
<code>String</code>, <code>MaxLength</code> is also applicable. For <code>String</code>, the facet | |
<code>Unicode</code> is considered additionally. The EDM primitive types <code>DateTimeOffset</code>, | |
<code>Decimal</code>, <code>Duration</code>, and <code>TimeOfDay</code> can have a <code>Precision</code> facet. | |
Additionally, <code>Decimal</code> can have the facet <code>Scale</code>. | |
</p></div> | |
</li> | |
</ul> | |
</div> | |
<div class="summary"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="field.summary"> | |
<!-- --> | |
</a> | |
<h3>Field Summary</h3> | |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> | |
<caption><span>Fields</span><span class="tabEnd"> </span></caption> | |
<tr> | |
<th class="colFirst" scope="col">Modifier and Type</th> | |
<th class="colLast" scope="col">Field and Description</th> | |
</tr> | |
<tr class="altColor"> | |
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#EDM_NAMESPACE">EDM_NAMESPACE</a></span></code> </td> | |
</tr> | |
</table> | |
</li> | |
</ul> | |
<!-- ========== METHOD SUMMARY =========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="method.summary"> | |
<!-- --> | |
</a> | |
<h3>Method Summary</h3> | |
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> | |
<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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> | |
<tr> | |
<th class="colFirst" scope="col">Modifier and Type</th> | |
<th class="colLast" scope="col">Method and Description</th> | |
</tr> | |
<tr id="i0" class="altColor"> | |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#fromUriLiteral-java.lang.String-">fromUriLiteral</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> literal)</code> | |
<div class="block">Converts URI literal representation to default literal representation.</div> | |
</td> | |
</tr> | |
<tr id="i1" class="rowColor"> | |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#getDefaultType--">getDefaultType</a></span>()</code> | |
<div class="block">Returns the default Java type for this EDM primitive type as described in the documentation of | |
<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm"><code>EdmPrimitiveType</code></a>.</div> | |
</td> | |
</tr> | |
<tr id="i2" class="altColor"> | |
<td class="colFirst"><code>boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#isCompatible-org.apache.olingo.commons.api.edm.EdmPrimitiveType-">isCompatible</a></span>(<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm">EdmPrimitiveType</a> primitiveType)</code> | |
<div class="block">Checks type compatibility.</div> | |
</td> | |
</tr> | |
<tr id="i3" class="rowColor"> | |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#toUriLiteral-java.lang.String-">toUriLiteral</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> literal)</code> | |
<div class="block">Converts default literal representation to URI literal representation.</div> | |
</td> | |
</tr> | |
<tr id="i4" class="altColor"> | |
<td class="colFirst"><code>boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#validate-java.lang.String-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-">validate</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode)</code> | |
<div class="block">Validates literal value.</div> | |
</td> | |
</tr> | |
<tr id="i5" class="rowColor"> | |
<td class="colFirst"><code><T> T</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#valueOfString-java.lang.String-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-java.lang.Class-">valueOfString</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> returnType)</code> | |
<div class="block">Converts literal representation of value to system data type.</div> | |
</td> | |
</tr> | |
<tr id="i6" class="altColor"> | |
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html#valueToString-java.lang.Object-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-">valueToString</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode)</code> | |
<div class="block">Converts system data type to literal representation of value.</div> | |
</td> | |
</tr> | |
</table> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.org.apache.olingo.commons.api.edm.EdmType"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from interface org.apache.olingo.commons.api.edm.<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html" title="interface in org.apache.olingo.commons.api.edm">EdmType</a></h3> | |
<code><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html#getFullQualifiedName--">getFullQualifiedName</a>, <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html#getKind--">getKind</a>, <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmType.html#getNamespace--">getNamespace</a></code></li> | |
</ul> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.org.apache.olingo.commons.api.edm.EdmNamed"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from interface org.apache.olingo.commons.api.edm.<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmNamed.html" title="interface in org.apache.olingo.commons.api.edm">EdmNamed</a></h3> | |
<code><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmNamed.html#getName--">getName</a></code></li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</div> | |
<div class="details"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<!-- ============ FIELD DETAIL =========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="field.detail"> | |
<!-- --> | |
</a> | |
<h3>Field Detail</h3> | |
<a name="EDM_NAMESPACE"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>EDM_NAMESPACE</h4> | |
<pre>static final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> EDM_NAMESPACE</pre> | |
<dl> | |
<dt><span class="seeLabel">See Also:</span></dt> | |
<dd><a href="../../../../../../constant-values.html#org.apache.olingo.commons.api.edm.EdmPrimitiveType.EDM_NAMESPACE">Constant Field Values</a></dd> | |
</dl> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<!-- ============ METHOD DETAIL ========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="method.detail"> | |
<!-- --> | |
</a> | |
<h3>Method Detail</h3> | |
<a name="isCompatible-org.apache.olingo.commons.api.edm.EdmPrimitiveType-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>isCompatible</h4> | |
<pre>boolean isCompatible(<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm">EdmPrimitiveType</a> primitiveType)</pre> | |
<div class="block">Checks type compatibility.</div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>primitiveType</code> - the <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm"><code>EdmPrimitiveType</code></a> to be tested for compatibility</dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd><code>true</code> if the provided type is compatible to this type</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="getDefaultType--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>getDefaultType</h4> | |
<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> getDefaultType()</pre> | |
<div class="block">Returns the default Java type for this EDM primitive type as described in the documentation of | |
<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm"><code>EdmPrimitiveType</code></a>.</div> | |
<dl> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>the default Java type</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="validate-java.lang.String-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>validate</h4> | |
<pre>boolean validate(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode)</pre> | |
<div class="block">Validates literal value.</div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>value</code> - the literal value</dd> | |
<dd><code>isNullable</code> - whether the <code>null</code> value is allowed</dd> | |
<dd><code>maxLength</code> - the maximum length</dd> | |
<dd><code>precision</code> - the precision</dd> | |
<dd><code>scale</code> - the scale</dd> | |
<dd><code>isUnicode</code> - whether non-ASCII characters are allowed (relevant only for Edm.String)</dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd><code>true</code> if the validation is successful</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="valueOfString-java.lang.String-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-java.lang.Class-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>valueOfString</h4> | |
<pre><T> T valueOfString(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> returnType) | |
throws <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></pre> | |
<div class="block">Converts literal representation of value to system data type.</div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>value</code> - the literal representation of value</dd> | |
<dd><code>isNullable</code> - whether the <code>null</code> value is allowed</dd> | |
<dd><code>maxLength</code> - the maximum length</dd> | |
<dd><code>precision</code> - the precision</dd> | |
<dd><code>scale</code> - the scale</dd> | |
<dd><code>isUnicode</code> - whether non-ASCII characters are allowed (relevant only for Edm.String)</dd> | |
<dd><code>returnType</code> - the class of the returned value; it must be one of the list in the documentation of | |
<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm"><code>EdmPrimitiveType</code></a></dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>the value as an instance of the class the parameter <code>returnType</code> indicates</dd> | |
<dt><span class="throwsLabel">Throws:</span></dt> | |
<dd><code><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="valueToString-java.lang.Object-java.lang.Boolean-java.lang.Integer-java.lang.Integer-java.lang.Integer-java.lang.Boolean-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>valueToString</h4> | |
<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> valueToString(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isNullable, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> maxLength, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> precision, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> scale, | |
<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> isUnicode) | |
throws <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></pre> | |
<div class="block">Converts system data type to literal representation of value. | |
<p> | |
Returns <code>null</code> if value is <code>null</code> and <code>null</code> is an allowed value. | |
</p></div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>value</code> - the Java value as Object; its type must be one of the list in the documentation of | |
<a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" title="interface in org.apache.olingo.commons.api.edm"><code>EdmPrimitiveType</code></a></dd> | |
<dd><code>isNullable</code> - whether the <code>null</code> value is allowed</dd> | |
<dd><code>maxLength</code> - the maximum length</dd> | |
<dd><code>precision</code> - the precision</dd> | |
<dd><code>scale</code> - the scale</dd> | |
<dd><code>isUnicode</code> - whether non-ASCII characters are allowed (relevant only for Edm.String)</dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>literal representation as String</dd> | |
<dt><span class="throwsLabel">Throws:</span></dt> | |
<dd><code><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="toUriLiteral-java.lang.String-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>toUriLiteral</h4> | |
<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toUriLiteral(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> literal)</pre> | |
<div class="block">Converts default literal representation to URI literal representation. | |
<p> | |
Returns <code>null</code> if the literal is <code>null</code>. Does not perform any validation. | |
</p></div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>literal</code> - the literal in default representation</dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>URI literal representation as String</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="fromUriLiteral-java.lang.String-"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>fromUriLiteral</h4> | |
<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fromUriLiteral(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> literal) | |
throws <a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></pre> | |
<div class="block">Converts URI literal representation to default literal representation. | |
<p> | |
Returns <code>null</code> if the literal is <code>null</code>. Checks the presence of a required prefix and of | |
required surrounding quotation marks but does not perform any further validation. | |
</p></div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>literal</code> - the literal in URI representation</dd> | |
<dt><span class="returnLabel">Returns:</span></dt> | |
<dd>default literal representation as String</dd> | |
<dt><span class="throwsLabel">Throws:</span></dt> | |
<dd><code><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm">EdmPrimitiveTypeException</a></code> - if a required prefix or required surrounding quotation marks are missing</dd> | |
</dl> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<div class="bottomNav"><a name="navbar.bottom"> | |
<!-- --> | |
</a> | |
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> | |
<a name="navbar.bottom.firstrow"> | |
<!-- --> | |
</a> | |
<ul class="navList" title="Navigation"> | |
<li><a href="../../../../../../overview-summary.html">Overview</a></li> | |
<li><a href="package-summary.html">Package</a></li> | |
<li class="navBarCell1Rev">Class</li> | |
<li><a href="class-use/EdmPrimitiveType.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"> | |
<li><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmParameter.html" title="interface in org.apache.olingo.commons.api.edm"><span class="typeNameLink">Prev Class</span></a></li> | |
<li><a href="../../../../../../org/apache/olingo/commons/api/edm/EdmPrimitiveTypeException.html" title="class in org.apache.olingo.commons.api.edm"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../../../../index.html?org/apache/olingo/commons/api/edm/EdmPrimitiveType.html" target="_top">Frames</a></li> | |
<li><a href="EdmPrimitiveType.html" target="_top">No Frames</a></li> | |
</ul> | |
<ul class="navList" id="allclasses_navbar_bottom"> | |
<li><a href="../../../../../../allclasses-noframe.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> | |
</div> | |
<div> | |
<ul class="subNavList"> | |
<li>Summary: </li> | |
<li>Nested | </li> | |
<li><a href="#field.summary">Field</a> | </li> | |
<li>Constr | </li> | |
<li><a href="#method.summary">Method</a></li> | |
</ul> | |
<ul class="subNavList"> | |
<li>Detail: </li> | |
<li><a href="#field.detail">Field</a> | </li> | |
<li>Constr | </li> | |
<li><a href="#method.detail">Method</a></li> | |
</ul> | |
</div> | |
<a name="skip.navbar.bottom"> | |
<!-- --> | |
</a></div> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<p class="legalCopy"><small>Copyright © 2013–2018 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> | |
</body> | |
</html> |