public final class RefUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertIriValue(String value) |
static void |
assertTypeRef(String name)
Asserts name to be valid type name
|
static void |
assertValueRef(String name) |
static boolean |
isIriValue(CharSequence value) |
static boolean |
isSameAsDefaultValue(Scope scope,
ComponentType component,
Value resolve) |
static boolean |
isTypeRef(CharSequence name)
Check if name is type name
|
static boolean |
isTypeRef(Ref<?> ref) |
static boolean |
isValueRef(CharSequence name) |
static boolean |
isValueRef(Ref<?> ref) |
static Value |
toBasicValue(Scope scope,
Ref<Value> ref) |
public static void assertTypeRef(String name)
name - type nameIllegalArgumentException - if name is not type namepublic static boolean isSameAsDefaultValue(Scope scope, ComponentType component, Value resolve) throws ResolutionException
ResolutionExceptionpublic static boolean isTypeRef(CharSequence name)
name - type namepublic static void assertValueRef(String name)
public static boolean isValueRef(CharSequence name)
public static boolean isIriValue(CharSequence value)
public static void assertIriValue(String value)
public static Value toBasicValue(Scope scope, Ref<Value> ref) throws ResolutionException
ResolutionExceptionpublic static boolean isValueRef(@Nullable
Ref<?> ref)
public static boolean isTypeRef(@Nullable
Ref<?> ref)
Copyright © 2017. All rights reserved.