public final class Related extends Property
Modifier and Type | Class and Description |
---|---|
static class |
Related.Factory |
Property.Id
ILLEGAL_PARAMETER_MESSAGE
Constructor and Description |
---|
Related(java.util.List<Parameter> params,
java.lang.String value)
Factory constructor.
|
Related(java.lang.String text,
Type... types) |
Related(java.net.URI uri,
Type... types) |
Modifier and Type | Method and Description |
---|---|
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 Related(java.lang.String text, Type... types)
text
- a related text valuetypes
- optional types of the text valuepublic Related(java.net.URI uri, Type... types)
uri
- a URI that defines a relationshiptypes
- optional types of the URI valuepublic Related(java.util.List<Parameter> params, java.lang.String value) throws java.net.URISyntaxException
params
- property parametersvalue
- string representation of a property valuejava.net.URISyntaxException
- if the specified URI value is not a valid URI