public class TagValue extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
debug |
protected Map<String,CharSequence> |
defaults |
protected Set<String> |
mandatoryTags |
protected static boolean |
VALIDATION |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsTag(String tag) |
protected void |
debugMsg(String msg) |
boolean |
equals(Object obj) |
protected CharSequence |
getDefault(String key) |
Set<String> |
getTags() |
protected CharSequence |
getValue(String key) |
int |
hashCode() |
protected void |
init() |
protected boolean |
isInListCaseInsensitive(CharSequence hash,
List<CharSequence> hashes) |
protected Map<String,CharSequence> |
newTagValue() |
protected void |
parse(String data)
subclasses have to make sure tagValues is initialized during init().
|
protected void |
setValue(String tag,
String value) |
protected List<CharSequence> |
stringToColonSeparatedList(String h,
Pattern pattern) |
protected Set<String> |
tagSet() |
String |
toString() |
protected CharSequence |
trimFWS(CharSequence data,
int tStart,
int tStop,
boolean trimWSP) |
void |
validate() |
protected boolean debug
protected static final boolean VALIDATION
protected Map<String,CharSequence> defaults
public TagValue(String data)
protected boolean containsTag(String tag)
protected CharSequence trimFWS(CharSequence data, int tStart, int tStop, boolean trimWSP)
protected Map<String,CharSequence> newTagValue()
protected void init()
protected void parse(String data)
data
- the string to be parsedprotected CharSequence getValue(String key)
protected CharSequence getDefault(String key)
public void validate()
protected List<CharSequence> stringToColonSeparatedList(String h, Pattern pattern)
protected boolean isInListCaseInsensitive(CharSequence hash, List<CharSequence> hashes)
protected void debugMsg(String msg)
msg
- the messageCopyright © 2008–2015. All rights reserved.