public class DomainInputResolver extends Object implements Callable<DefaultDomain>
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainInputResolver.UserLocatorPolicy
The policy for locating users.
|
| Constructor and Description |
|---|
DomainInputResolver(com.sk89q.squirrelid.resolver.ProfileService profileService,
String[] input)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultDomain |
call() |
com.google.common.base.Function<DefaultDomain,DefaultDomain> |
createAddAllFunction(DefaultDomain target) |
com.google.common.base.Function<DefaultDomain,DefaultDomain> |
createRemoveAllFunction(DefaultDomain target) |
DomainInputResolver.UserLocatorPolicy |
getLocatorPolicy()
Get the policy used for identifying users.
|
static UUID |
parseUUID(String input)
Try to parse a UUID locator from input.
|
void |
setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)
Set the policy used for identifying users.
|
public DomainInputResolver(com.sk89q.squirrelid.resolver.ProfileService profileService,
String[] input)
profileService - the profile serviceinput - the input to parsepublic DomainInputResolver.UserLocatorPolicy getLocatorPolicy()
public void setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)
locatorPolicy - the policypublic DefaultDomain call() throws UnresolvedNamesException
call in interface Callable<DefaultDomain>UnresolvedNamesExceptionpublic com.google.common.base.Function<DefaultDomain,DefaultDomain> createAddAllFunction(DefaultDomain target)
public com.google.common.base.Function<DefaultDomain,DefaultDomain> createRemoveAllFunction(DefaultDomain target)
Copyright © 2015. All Rights Reserved.