public class ParseField extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParseField.Flag |
Modifier and Type | Field and Description |
---|---|
static EnumSet<ParseField.Flag> |
EMPTY_FLAGS |
Constructor and Description |
---|
ParseField(String value,
String... deprecatedNames) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAllNamesIncludedDeprecated() |
String |
getPreferredName() |
boolean |
match(String currentFieldName) |
boolean |
match(String currentFieldName,
EnumSet<ParseField.Flag> flags) |
ParseField |
withAllDeprecated(String allReplacedWith)
Return a new ParseField where all field names are deprecated and replaced with
allReplacedWith . |
ParseField |
withDeprecation(String... deprecatedNames) |
public static final EnumSet<ParseField.Flag> EMPTY_FLAGS
public String getPreferredName()
public String[] getAllNamesIncludedDeprecated()
public ParseField withDeprecation(String... deprecatedNames)
public ParseField withAllDeprecated(String allReplacedWith)
allReplacedWith
.public boolean match(String currentFieldName)
public boolean match(String currentFieldName, EnumSet<ParseField.Flag> flags)
Copyright © 2009–2015. All rights reserved.