# Accessing DriverProperty values

**URL:** <https://forum.inductiveautomation.com/t/accessing-driverproperty-values/5796>\
**Category:** Module Development\
**Created:** [February 4, 2013, 5:37pm UTC](https://forum.inductiveautomation.com/t/accessing-driverproperty-values/5796 "2013-02-04T17:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lisawas](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lisawas](https://forum.inductiveautomation.com/u/lisawas)\
**Post date:** [February 4, 2013, 5:37pm UTC](https://forum.inductiveautomation.com/t/accessing-driverproperty-values/5796/1 "2013-02-04T17:37:04Z")

</div>

I’m slowly building a driver. Thus far, I’ve got the following classes:  
–FSDriverHook - extended from AbstractDriverModuleHook  
–FSDriver - implements Driver  
–FSDriverMeta - implements DriverMeta, DriverAuthorInfo  
–FSDriverCategory - extends AbstractDriverCategory  
–URLProperty - extends AbstractDriverProperty

I filled in the stub methods for the Meta class, Category, Property, and Hook. I put in the constructor, Initialize, and Shutdown for the driver. I got the thing to install, and watched the traces pop up in the log.

Where I’m stuck is, though I can see the place where a user can enter the URL property when creating a device, I can’t seem to get the value after it has been entered. I printed out the value during the initialize method, and it hasn’t changed from the value I instantiated it as. I added a getter and setter in the driver class, but that didn’t seem to make a difference.

I need the URL to write everything else. How do I get at it, please?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 4, 2013, 5:53pm UTC](https://forum.inductiveautomation.com/t/accessing-driverproperty-values/5796/2 "2013-02-04T17:53:45Z")

</div>

The initialization looks for a setter on your driver named set + whatever is returned by DriverProperty#getId().

So, if your URLProperty’s Id was “Url” you would need a setUrl(String) setter on your driver.

---

<div class="post-metadata">

**Author:** ![lisawas](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lisawas](https://forum.inductiveautomation.com/u/lisawas)\
**Post date:** [February 4, 2013, 6:06pm UTC](https://forum.inductiveautomation.com/t/accessing-driverproperty-values/5796/3 "2013-02-04T18:06:28Z")

</div>

Ah, that did it. Thanks very much.
