org.rhq.core.gui.util
Class PropertyIdGeneratorUtility
java.lang.Object
org.rhq.core.gui.util.PropertyIdGeneratorUtility
public class PropertyIdGeneratorUtility
- extends Object
|
Method Summary |
static String |
getIdentifier(org.rhq.core.domain.configuration.Configuration configuration,
String suffix)
|
static String |
getIdentifier(org.rhq.core.domain.configuration.Property property,
Integer index)
Generates a unique identifier based on the specified Property. |
static String |
getIdentifier(org.rhq.core.domain.configuration.Property property,
Integer index,
String suffix)
Generates a unique identifier based on the specified Property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyIdGeneratorUtility
public PropertyIdGeneratorUtility()
getIdentifier
public static String getIdentifier(@NotNull
org.rhq.core.domain.configuration.Property property,
@Nullable
Integer index)
- Generates a unique identifier based on the specified Property. It will look at any parents/grandparents etc. the
property has and take those into account too. The configuration itself will also be taken into account, so the
identifier will be unique across multiple configurations.
- Parameters:
property - a JON configuration propertyindex - the property's index if its parent is a PropertyList, null otherwise
- Returns:
- a unique identifier based on the specified Property
getIdentifier
public static String getIdentifier(@NotNull
org.rhq.core.domain.configuration.Property property,
@Nullable
Integer index,
@Nullable
String suffix)
- Generates a unique identifier based on the specified Property. It will look at any parents/grandparents etc. the
property has and take those into account too. The configuration itself will also be taken into account, so the
identifier will be unique across multiple configurations.
- Parameters:
property - a JON configuration propertyindex - the property's index if its parent is a PropertyList, null otherwisesuffix - a suffix to append to the returned id; if null, no suffix will be appended
- Returns:
- a unique identifier based on the specified Property
getIdentifier
public static String getIdentifier(@NotNull
org.rhq.core.domain.configuration.Configuration configuration,
@Nullable
String suffix)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.