JID class
Represents a Jabber ID in parsed form.
- Annotations
Constructors
Properties
Methods
-
bareCompare(
JID other, {bool ensureBare = false}) → bool -
Compares the JID with
other
. This function assumes that JID andother
are bare, i.e. only the domain- and localparts are compared. IfensureBare
is optionally set to true, thenother
MUST be bare. Otherwise, false is returned. -
isBare(
) → bool - Returns true if the JID is bare.
-
isFull(
) → bool - Returns true if the JID is full.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBare(
) → JID - Converts the JID into a bare JID.
-
toDomain(
) → JID - Convert the JID into the JID of the domain. For example, converts alice@example.org/abc123 to example.org.
-
toString(
) → String -
Converts to JID instance into its string representation of
localpart@domainpart/resource.
override
-
withResource(
String resource) → JID -
Converts the JID into one with a resource part of
resource
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override