public final class JcrNs extends Object implements JsonObjectConvertible, Comparable<JcrNs>
Modifier and Type | Class and Description |
---|---|
static interface |
JcrNs.JsonKeys
Json keys for JcrNs.
|
Constructor and Description |
---|
JcrNs() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NotNull JcrNs o) |
static @NotNull JcrNs |
create(@NotNull String prefix,
@NotNull String uri)
Create a new JcrNs with both values set.
|
boolean |
equals(Object o) |
static @Nullable JcrNs |
fromJson(@NotNull javax.json.JsonObject json)
Map a JSON object to a
JcrNs . |
String |
getPrefix()
The namespace prefix.
|
String |
getUri()
The namespace URI.
|
int |
hashCode() |
static JcrNs.JsonKeys |
keys() |
void |
setPrefix(String prefix) |
void |
setUri(String uri) |
javax.json.JsonObject |
toJson() |
String |
toString() |
@NotNull public static JcrNs.JsonKeys keys()
public String getPrefix()
public void setPrefix(String prefix)
public String getUri()
public void setUri(String uri)
@Nullable public static @Nullable JcrNs fromJson(@NotNull @NotNull javax.json.JsonObject json)
JcrNs
.json
- JSON object@NotNull public static @NotNull JcrNs create(@NotNull @NotNull String prefix, @NotNull @NotNull String uri)
prefix
- the namespace prefixuri
- the namespace uripublic javax.json.JsonObject toJson()
toJson
in interface JsonObjectConvertible
public int compareTo(@NotNull @NotNull JcrNs o)
compareTo
in interface Comparable<JcrNs>
Copyright © 2017–2020. All rights reserved.