<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding/Recovering attributes from graphic in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517323#M1603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I asked already the same question in this forum, and answer was clear :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, although you can add any object to the attributes the underlying core code will only support the types allowed by ESRI servers e.g. numbers, strings, dates etc. This means that your object will be turned into a string by calling toString on it since it is not one of the recognised types. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;original post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/97550-Can-I-add-Attribute-with-Mutable-object-to-Immutable-Graphic"&gt;here &lt;/A&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2014 06:25:38 GMT</pubDate>
    <dc:creator>JeremieJoalland1</dc:creator>
    <dc:date>2014-04-25T06:25:38Z</dc:date>
    <item>
      <title>Adding/Recovering attributes from graphic</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517320#M1600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently developing an application which, at some point, add Graphic objects to a GraphicsLayer. These Graphic objects have a map of attributes. These attributes are custom object type that I have created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is : when I recover a Graphic object from the GraphicsLayer and try to recover an attribute from the Graphic object that I recovered, the attribute is a String (the string return by the method toString() overrode by my custom object) not my object anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the normal behaviour or have I made a mistake somewhere ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S : I'm working with 10.2 version of the SDK&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517320#M1600</guid>
      <dc:creator>OlivierNols</dc:creator>
      <dc:date>2014-04-24T11:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding/Recovering attributes from graphic</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517321#M1601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately it appears to be the expected behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Finally, although you can add any object to the attributes the underlying core code will only support the types allowed by ESRI servers e.g. numbers, strings, dates etc. This means that your object will be turned into a string by calling toString on it since it is not one of the recognised types.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/97550-Can-I-add-Attribute-with-Mutable-object-to-Immutable-Graphic?p=349146&amp;amp;viewfull=1#post349146" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/97550-Can-I-add-Attribute-with-Mutable-object-to-Immutable-Graphic?p=349146&amp;amp;viewfull=1#post349146&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 18:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517321#M1601</guid>
      <dc:creator>JohnWass</dc:creator>
      <dc:date>2014-04-24T18:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding/Recovering attributes from graphic</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517322#M1602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the precision altough I would have prefered it to be a mistake from myself...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And as said in the post that you linked, it would be nice to be mentionned in the API Reference&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 19:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517322#M1602</guid>
      <dc:creator>OlivierNols</dc:creator>
      <dc:date>2014-04-24T19:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding/Recovering attributes from graphic</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517323#M1603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I asked already the same question in this forum, and answer was clear :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally, although you can add any object to the attributes the underlying core code will only support the types allowed by ESRI servers e.g. numbers, strings, dates etc. This means that your object will be turned into a string by calling toString on it since it is not one of the recognised types. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;original post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/97550-Can-I-add-Attribute-with-Mutable-object-to-Immutable-Graphic"&gt;here &lt;/A&gt;&lt;SPAN&gt;!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 06:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/adding-recovering-attributes-from-graphic/m-p/517323#M1603</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2014-04-25T06:25:38Z</dc:date>
    </item>
  </channel>
</rss>

