public class ParseContext extends Object
Constructor and Description |
---|
ParseContext() |
Modifier and Type | Method and Description |
---|---|
void |
addWarning(int code,
Object... args)
Adds a parse warning.
|
void |
addWarning(String message)
Adds a parse warning.
|
Integer |
getLineNumber()
Gets the line number the parser is currently on.
|
String |
getPropertyName()
Gets the name of the property that the parser is currently parsing.
|
VCardVersion |
getVersion()
Gets the version of the vCard being parsed.
|
List<ParseWarning> |
getWarnings()
Gets the parse warnings.
|
void |
setLineNumber(Integer lineNumber)
Sets the line number the parser is currently on.
|
void |
setPropertyName(String propertyName)
Sets the name of the property that the parser is currently parsing.
|
void |
setVersion(VCardVersion version)
Sets the version of the vCard being parsed.
|
public ParseContext()
public VCardVersion getVersion()
public void setVersion(VCardVersion version)
version
- the vCard versionpublic Integer getLineNumber()
public void setLineNumber(Integer lineNumber)
lineNumber
- the line number or null if not applicablepublic String getPropertyName()
public void setPropertyName(String propertyName)
propertyName
- the property name (e.g. "FN") or null if not
applicablepublic void addWarning(int code, Object... args)
code
- the warning codeargs
- the warning message argumentspublic void addWarning(String message)
message
- the warning messagepublic List<ParseWarning> getWarnings()
Copyright © 2012–2023 Michael Angstadt. All rights reserved.