public class SourceDataTrimTitle extends Object implements Serializable
Specifies how to trim common words from the beginning of a field to enable title sorting by that field.
Constructor and Description |
---|
SourceDataTrimTitle() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDefaultValue()
The default value to use if the source attribute is not specified in a
document.
|
String |
getLanguage()
An IETF RFC 4646
language code.
|
String |
getSeparator()
The separator that follows the text to trim.
|
String |
getSourceName()
The name of the document source field to add to this
IndexField . |
int |
hashCode() |
void |
setDefaultValue(String defaultValue)
The default value to use if the source attribute is not specified in a
document.
|
void |
setLanguage(String language)
An IETF RFC 4646
language code.
|
void |
setSeparator(String separator)
The separator that follows the text to trim.
|
void |
setSourceName(String sourceName)
The name of the document source field to add to this
IndexField . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SourceDataTrimTitle |
withDefaultValue(String defaultValue)
The default value to use if the source attribute is not specified in a
document.
|
SourceDataTrimTitle |
withLanguage(String language)
An IETF RFC 4646
language code.
|
SourceDataTrimTitle |
withSeparator(String separator)
The separator that follows the text to trim.
|
SourceDataTrimTitle |
withSourceName(String sourceName)
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 SourceDataTrimTitle 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 SourceDataTrimTitle 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 String getSeparator()
public void setSeparator(String separator)
separator
- The separator that follows the text to trim.public SourceDataTrimTitle withSeparator(String separator)
Returns a reference to this object so that method calls can be chained together.
separator
- The separator that follows the text to trim.public String getLanguage()
Constraints:
Pattern: [a-zA-Z]{2,8}(?:-[a-zA-Z]{2,8})*
public void setLanguage(String language)
Constraints:
Pattern: [a-zA-Z]{2,8}(?:-[a-zA-Z]{2,8})*
language
- An IETF RFC 4646
language code. Only the primary language is considered. English (en)
is currently the only supported language.public SourceDataTrimTitle withLanguage(String language)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [a-zA-Z]{2,8}(?:-[a-zA-Z]{2,8})*
language
- An IETF RFC 4646
language code. Only the primary language is considered. English (en)
is currently the only supported language.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.