public final class Agent extends Property implements net.fortuna.ical4j.model.Escapable
Modifier and Type | Class and Description |
---|---|
static class |
Agent.Factory |
Property.Id
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Agent(java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Agent(java.lang.String text) |
Agent(java.net.URI uri) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText() |
java.net.URI |
getUri() |
java.lang.String |
getValue() |
void |
validate() |
assertOneOrLess, assertParametersEmpty, assertPidParameter, assertPrefParameter, assertTextParameter, assertTypeParameter, equals, getExtendedParameter, getExtendedParameters, getGroup, getId, getParameter, getParameters, getParameters, hashCode, toString
public Agent(java.net.URI uri)
uri
- agent URI valuepublic Agent(java.lang.String text)
text
- agent text valuepublic Agent(java.util.List<Parameter> params, java.lang.String value) throws java.net.URISyntaxException
params
- property parametersvalue
- string representation of an agent valuejava.net.URISyntaxException
- if the string value is an invalid URI