javacommons/utils/tsrc/rtsupport/javasrc/com/nokia/mj/impl/properties/test/Property.java
changeset 80 d6dafc5d983f
parent 78 71ad690e91f5
child 87 1627c337e51e
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 package com.nokia.mj.impl.properties.test;
       
    19 
       
    20 import com.nokia.mj.impl.rt.support.SystemPropertyProvider;
       
    21 
       
    22 /**
       
    23  * A class for handling dynamic system properties of File API. In order to speed
       
    24  * the search all the property names are stored into two Hashtables except for
       
    25  * fileconn.dir.private and fileconn.dir.roots.names properties.
       
    26  */
       
    27 public class Property implements SystemPropertyProvider
       
    28 {
       
    29 
       
    30 
       
    31     private static int mCounter = 0;
       
    32 
       
    33     /* (non-Javadoc)
       
    34      * @see com.nokia.mj.impl.rt.DynamicProperty#getProperty(com.nokia.mj.impl.rt.DynamicPropertyInfo)
       
    35      */
       
    36     public String getProperty(String key)
       
    37     {
       
    38         //Get the asked property name.
       
    39         System.out.println("  test.Property");
       
    40         mCounter++;
       
    41         return key +" DynamicValue ("+mCounter+")";
       
    42     }
       
    43     public boolean isStatic(String key)
       
    44     {
       
    45         return false;
       
    46     }
       
    47 }