public class Ivoid extends Object
For most purposes these are strings, but case handling during comparison needs some care. The relevant text in Section 2.1 of the IVOA Identifiers standard reads:
"The Registry references are, as a whole, compared case-insensitively, and must be treated case-insensitively throughout to maintain backwards compatibility with version 1 of this specification. When comparing full IVOIDs, the local part must be split off and compared preserving case, while the registry part must be compared case-insensitively."
The form of an IVOID is:
ivo://<authority><path>[?<query>][#<fragment>]where
ivo://<authority><path>
is known as
the "registry part" and
[?<query>][#<fragment>]
is the "local part".
Invalid Ivoids can still be used and compared; if the text supplied at construction time does not conform to the IVO ID syntax, the registry and local parts will be null, and the equality semantics will simply be that of (case-sensitive) strings.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
equalsIvoid(Ivoid other)
Typed version of
equals(java.lang.Object) method. |
String |
getLocalPart()
Returns the local part of this IVOID.
|
String |
getRegistryPart()
Returns the registry part of this IVOID.
|
int |
hashCode() |
boolean |
isValid()
Indicates whether the string represented by this Ivoid object is
a valid IVO ID.
|
boolean |
matchesRegistryPart(String regPart)
Indicates whether the registry part of this Ivoid is equivalent
to a supplied textual representation of another registry part.
|
String |
toRegtapString()
Returns the normalised form of this ivoid suitable for use
(for instance ADQL equality matching) in the context of the
Relational Registry.
|
String |
toString() |
public Ivoid(String txt)
txt
- textual representation of IVOIDpublic String getRegistryPart()
public String getLocalPart()
public boolean matchesRegistryPart(String regPart)
regPart
- textual representation of registry part of an IVO IDpublic boolean isValid()
getRegistryPart()
returns a non-null value.public String toRegtapString()
public boolean equalsIvoid(Ivoid other)
equals(java.lang.Object)
method.Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.