@Deprecated public class SourceDataMap extends Object implements Serializable
 Specifies how to map source attribute values to custom values when populating an IndexField .
 
| Constructor and Description | 
|---|
SourceDataMap()
Deprecated.  
  | 
| Modifier and Type | Method and Description | 
|---|---|
SourceDataMap | 
addCasesEntry(String key,
             String value)
Deprecated.  
A map that translates source field values to custom values. 
 | 
SourceDataMap | 
clearCasesEntries()
Deprecated.  
Removes all the entries added into Cases. 
 | 
boolean | 
equals(Object obj)
Deprecated.  
  | 
Map<String,String> | 
getCases()
Deprecated.  
A map that translates source field values to custom values. 
 | 
String | 
getDefaultValue()
Deprecated.  
The default value to use if the source attribute is not specified in a
 document. 
 | 
String | 
getSourceName()
Deprecated.  
The name of the document source field to add to this
  
IndexField. | 
int | 
hashCode()
Deprecated.  
  | 
void | 
setCases(Map<String,String> cases)
Deprecated.  
A map that translates source field values to custom values. 
 | 
void | 
setDefaultValue(String defaultValue)
Deprecated.  
The default value to use if the source attribute is not specified in a
 document. 
 | 
void | 
setSourceName(String sourceName)
Deprecated.  
The name of the document source field to add to this
  
IndexField. | 
String | 
toString()
Deprecated.  
Returns a string representation of this object; useful for testing and
 debugging. 
 | 
SourceDataMap | 
withCases(Map<String,String> cases)
Deprecated.  
A map that translates source field values to custom values. 
 | 
SourceDataMap | 
withDefaultValue(String defaultValue)
Deprecated.  
The default value to use if the source attribute is not specified in a
 document. 
 | 
SourceDataMap | 
withSourceName(String sourceName)
Deprecated.  
The name of the document source field to add to this
  
IndexField. | 
public String getSourceName()
IndexField.
 
 Constraints:
 Length: 1 - 64
 Pattern: [a-z][a-z0-9_]*
IndexField.public void setSourceName(String sourceName)
IndexField.
 
 Constraints:
 Length: 1 - 64
 Pattern: [a-z][a-z0-9_]*
sourceName - The name of the document source field to add to this
         IndexField.public SourceDataMap withSourceName(String sourceName)
IndexField.
 Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 64
 Pattern: [a-z][a-z0-9_]*
sourceName - The name of the document source field to add to this
         IndexField.public String getDefaultValue()
 Constraints:
 Length: 0 - 1024
public void setDefaultValue(String defaultValue)
 Constraints:
 Length: 0 - 1024
defaultValue - The default value to use if the source attribute is not specified in a
         document. Optional.public SourceDataMap withDefaultValue(String defaultValue)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 1024
defaultValue - The default value to use if the source attribute is not specified in a
         document. Optional.public Map<String,String> getCases()
public void setCases(Map<String,String> cases)
cases - A map that translates source field values to custom values.public SourceDataMap withCases(Map<String,String> cases)
Returns a reference to this object so that method calls can be chained together.
cases - A map that translates source field values to custom values.public SourceDataMap addCasesEntry(String key, String value)
The method adds a new key-value pair into Cases parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Cases.value - The corresponding value of the entry to be added into Cases.public SourceDataMap clearCasesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.