public class PersonalizationInfoImpl extends java.lang.Object implements PersonalizationInfo
PERSONALIZATION_KEY| Constructor and Description |
|---|
PersonalizationInfoImpl()
Default constructor
|
PersonalizationInfoImpl(java.lang.String prefix,
java.lang.String suffix)
Constructor to initialize the Personalization Info with a prefix and suffix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(java.lang.String attributeName,
java.lang.String replacementText)
This function adds a personalization mapping
|
java.util.Map<java.lang.String,java.lang.String> |
getAllMappings()
This function returns all attribute name and replacemenet text mappings.
|
java.lang.String |
getMapping(java.lang.String attributeName)
This function returns the mapping corresponding to an attribute
|
java.lang.String |
getPrefixPattern()
This function returns the prefix to be used with replacement text.
|
java.lang.String |
getSuffixPattern()
This function returns the suffix to be used with replacement text.
|
void |
removeMapping(java.lang.String attributeName)
This function removes a personalization mapping
|
void |
setPrefixPattern(java.lang.String prefixPattern)
This function sets the prefix to be used for the replacement text
|
void |
setSuffixPattern(java.lang.String suffixPattern)
This function sets the suffix to be used with replacement text.
|
boolean |
usePrefix()
This function tells whether prefix has to be added to replacement text or not.
|
boolean |
useSuffix()
This function tells whether suffix has to be added to replacement text or not.
|
public PersonalizationInfoImpl()
public PersonalizationInfoImpl(java.lang.String prefix,
java.lang.String suffix)
prefix - A prefix to be applied to replacement text.suffix - A suffic to be applied to replacemenet text.public void addMapping(java.lang.String attributeName,
java.lang.String replacementText)
addMapping in interface PersonalizationInfoattributeName - name of the attributereplacementText - replacement string to be usedpublic void removeMapping(java.lang.String attributeName)
removeMapping in interface PersonalizationInfoattributeName - name of the attribute that needs to be removed.public java.lang.String getMapping(java.lang.String attributeName)
getMapping in interface PersonalizationInfoattributeName - attribute namepublic java.util.Map<java.lang.String,java.lang.String> getAllMappings()
getAllMappings in interface PersonalizationInfopublic java.lang.String getPrefixPattern()
getPrefixPattern in interface PersonalizationInfopublic void setPrefixPattern(java.lang.String prefixPattern)
setPrefixPattern in interface PersonalizationInfoprefixPattern - The prefix.public java.lang.String getSuffixPattern()
getSuffixPattern in interface PersonalizationInfopublic void setSuffixPattern(java.lang.String suffixPattern)
setSuffixPattern in interface PersonalizationInfosuffixPattern - public boolean usePrefix()
usePrefix in interface PersonalizationInfopublic boolean useSuffix()
useSuffix in interface PersonalizationInfoCopyright © 2010 - 2020 Adobe. All Rights Reserved