de.smartics.properties.tutorial.property.key
Class PropertyKeyAccessTutorial

Package class diagram package PropertyKeyAccessTutorial
java.lang.Object
  extended by de.smartics.properties.tutorial.property.key.PropertyKeyAccessTutorial

@Document(title="Accessing Property Keys",
          sortKey="basics0070")
@DocCategory(value="basics")
public class PropertyKeyAccessTutorial
     
     
extends Object

This tutorial introduces shows how to declare a property whose property key is required at runtime.


Constructor Summary
PropertyKeyAccessTutorial()
           
 
Method Summary
 void declarationOfAProperty()
           We have shown how the descriptor of a property can be made available in the PropertyTutorial.
 void setUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyKeyAccessTutorial

public PropertyKeyAccessTutorial()
Method Detail

setUp

public void setUp()

declarationOfAProperty

@DocChapter
public void declarationOfAProperty()

We have shown how the descriptor of a property can be made available in the PropertyTutorial. We also mentioned that a property key can be retrieved without the need of fetching the whole property descriptor. Now let's look at how to declare this!

As you may have anticipated, declaring access to a property is quite simple and analogous to declaring access to a property descriptor.

Accessing the property key information is also straight forward:



Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.