/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: InstFinderStore.java,v 1.2 2008/06/25 05:51:19 qcheng Exp $
*
*/
throws InstallException
{
if (instanceIdentifier == null) {
instanceIdentifier = new InstFinderStore();
" the properties");
}
}
return instanceIdentifier;
}
throws InstallException
{
if (instanceName == null) {
"found in the properties. Returning null value");
} else {
"found in the properties.");
}
return instanceName;
}
{
try {
counter++; // Next count
} catch (NumberFormatException ne) {
}
}
}
// The Counter Key should be added first. That way it remains the
// first element in the properties.
}
{
mapKeys);
}
return productDetails;
}
throws InstallException
{
key = getPropertyKey(i);
break;
}
}
mapKeys);
}
// Returns null if the instanceName is not found
return iFinderValues;
}
{
"Error - size of mapKeys and number of tokens are not same. " +
throw new InstallException(message);
}
for (int i=0; i<count; i++) {
}
return iFinderValues;
}
private InstFinderStore() {
}
return instanceNames;
}
public int getInstancesCount() {
// One Entry is the instance counter
return size() - 1;
}
"instance " + instanceName);
for (int i=0; i<count; i++) {
removeProperty(i);
break;
}
}
}
// Generate String of format product_001, product_002 etc.,
// Replace the prefix i.e., '000' with appropriate the counter number
"generated instance name: " + instanceName);
return instanceName;
}
// The keysToUse is an ArrayList which contains the keys to use in
// the order (as defined in config file).
for (int i = 0; i < count; i++) {
// The value should never be null. All instance finder
// interactions need a value.
}
}
return uniqueKey;
}
char newChar)
{
for (int i=0; i<l1; i++) {
for (int j=0; j<l2; j++) {
if (replaceStrChar[i] == oldChars[j]) {
replaceStrChar[i] = newChar;
}
}
}
}
return returnStr;
}
"*** END InstFinderStore Data **********" +
return displayStr;
}
//////////////////////////////////////////////////////////////////////////
// Overridden abstract methods of PropertyStore
//////////////////////////////////////////////////////////////////////////
return TRANSLATION_FILE;
}
return STR_IS_LOOK_UP_FILE_HEADER;
}
}
}
return getLoadErrorMessage(); // Generic message is sufficient
}
return getLoadErrorMessage(); // Generic message is sufficient
}
//////////////////////////////////////////////////////////////////////////
/** Field STR_IS_INSTANCE_NAME_PREFIX **/
/** Field STR_IS_LOOK_UP_KEY_FIELD_SEP **/
/** Field STR_IS_LOOK_UP_FILE_HEADER **/
"# Product Instances Translation Lookup File"; // # is necessary
/** Field STR_IS_LOOK_UP_COUNTER_KEY **/
"Product_Instance_Count";
/** Field STR_IS_INSTANCE_NAME_SUFFIX **/
"Lookup";
/** Field LOC_IS_ERR_LOAD_INSTALL_STATE **/
"IS_ERR_GENERATE_INST_NAME";
"IS_ERR_EXTRACT_IFINDER_DATA";
}