|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.tutorial.property.key.PropertyKeyAccessTutorial
@Document(title="Accessing Property Keys", sortKey="basics0070") @DocCategory(value="basics") public class PropertyKeyAccessTutorial
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 |
---|
public PropertyKeyAccessTutorial()
Method Detail |
---|
public void setUp()
@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:
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |