001 /*
002 * $Id: SimpleExampleApp.java,v 1.1 2005/04/09 23:18:37 mitch Exp $
003 *
004 * Copyright (c) 2004, FullSpan Software (www.fullspan.com)
005 *
006 * Licensed under the BSD License
007 * OSI Certified Open Source Software (www.opensource.org)
008 *
009 * You may not use this file except in compliance with the License. You should
010 * have received a copy of the License with this distribution, or you can find
011 * it at: http://www.fullspan.com/shared/license.html.
012 *
013 * NO WARRANTY - USE AT YOUR OWN RISK. All software and other materials
014 * distributed under the License are provided on an "AS IS" BASIS, WITHOUT
015 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 */
017 package com.fullspan.propkeyexample.simple;
018
019 import java.util.*;
020
021 /**
022 *
023 * @author Mitch Stuart
024 */
025 public class SimpleExampleApp
026 {
027 public static void demonstrateExamplePropKeyConstantUsage()
028 {
029 ResourceBundle bundle = ResourceBundle.getBundle(
030 "com/fullspan/propkeyexample/simple/resource/SimpleExample");
031
032 String constantVarName =
033 "SimpleExamplePropkeys.FORM.LOGIN.FIELD.CONFIRM_PASSWORD.LABEL";
034 String propKey =
035 SimpleExamplePropkeys.FORM.LOGIN.FIELD.CONFIRM_PASSWORD.LABEL;
036 String propValue = bundle.getString(propKey);
037
038 System.out.println(
039 "Constant variable name: " + constantVarName +
040 "\nProperty key: " + propKey +
041 "\nProperty value: " + propValue);
042 }
043
044 public static void main(String[] args)
045 {
046 demonstrateExamplePropKeyConstantUsage();
047 }
048 }