public final class Check extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
datatypeNotNull(org.tmapi.core.Locator loc)
Throws a IllegalArgumentException if the datatype is
null |
static void |
itemIdentifierNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc) |
static void |
locatorNotNull(org.tmapi.core.Locator loc)
Throws a IllegalArgumentException if the locator is
null |
static void |
playerInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic player)
Checks if the player is in the topic map
|
static void |
playerNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic player)
Throws a
ModelConstraintException iff the player is
null. |
static void |
reifierInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic reifier)
Checks if the reifier is in the topic map
|
static void |
scopeInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic... scope)
Checks if the scope is in the topic map
|
static void |
scopeNotEmpty(org.tmapi.core.Construct sender,
Collection<org.tmapi.core.Topic> scope)
Throws a
ModelConstraintException iff the scope is
empty. |
static void |
scopeNotEmpty(org.tmapi.core.Construct sender,
org.tmapi.core.Topic[] scope)
Throws a
ModelConstraintException iff the scope is
empty. |
static void |
scopeNotNull(org.tmapi.core.Construct sender,
Collection<org.tmapi.core.Topic> scope)
Throws a
ModelConstraintException iff the scope is
null. |
static void |
scopeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic[] scope)
Throws a
ModelConstraintException iff the scope is
null. |
static void |
subjectIdentifierNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc) |
static void |
subjectIdentifierNotNull(org.tmapi.core.Locator sid)
Throws a IllegalArgumentException if the subject identifier is
null |
static void |
subjectLocatorNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc) |
static void |
subjectLocatorNotNull(org.tmapi.core.Locator loc)
Throws a IllegalArgumentException if the subject locator is
null |
static void |
themeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic theme)
Throws a
ModelConstraintException iff the theme is
null. |
static void |
themeNotNull(org.tmapi.core.Topic... themes)
Throws a
IllegalArgumentException iff the theme is
null. |
static void |
themeNotNull(org.tmapi.core.Topic theme)
Throws a
IllegalArgumentException iff the theme is
null. |
static void |
typeInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic type)
Checks if the type is in the topic map
|
static void |
typeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic type)
Throws a
ModelConstraintException iff the type is
null. |
static void |
typeNotNull(org.tmapi.core.Topic type)
Throws a
IllegalArgumentException iff the type is
null. |
static void |
valueNotNull(org.tmapi.core.Construct sender,
Object value)
Throws a
ModelConstraintException iff the value is
null. |
static void |
valueNotNull(org.tmapi.core.Construct sender,
Object value,
org.tmapi.core.Locator datatype)
Throws a
ModelConstraintException iff the value or the
datatype is null. |
static void |
valueNotNull(Object value)
Throws a IllegalArgumentException if the value is
null |
public static void scopeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic[] scope)
ModelConstraintException iff the scope is
null.sender - The sender.scope - The scope.public static void themeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic theme)
ModelConstraintException iff the theme is
null.sender - The sender.theme - The theme.public static void scopeNotNull(org.tmapi.core.Construct sender,
Collection<org.tmapi.core.Topic> scope)
ModelConstraintException iff the scope is
null.sender - The sender.scope - The scope.public static void scopeNotEmpty(org.tmapi.core.Construct sender,
Collection<org.tmapi.core.Topic> scope)
ModelConstraintException iff the scope is
empty.sender - The sender.scope - The scope.public static void scopeNotEmpty(org.tmapi.core.Construct sender,
org.tmapi.core.Topic[] scope)
ModelConstraintException iff the scope is
empty.sender - The sender.scope - The scope.public static void typeNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic type)
ModelConstraintException iff the type is
null.sender - The sender.type - The type.public static void valueNotNull(org.tmapi.core.Construct sender,
Object value)
ModelConstraintException iff the value is
null.sender - The sender.value - The value.public static void valueNotNull(org.tmapi.core.Construct sender,
Object value,
org.tmapi.core.Locator datatype)
ModelConstraintException iff the value or the
datatype is null.sender - The sender.value - The value.datatype - The datatype.public static void playerNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Topic player)
ModelConstraintException iff the player is
null.sender - The sender.player - The player.public static void subjectIdentifierNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc)
public static void subjectLocatorNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc)
public static void itemIdentifierNotNull(org.tmapi.core.Construct sender,
org.tmapi.core.Locator loc)
public static void subjectLocatorNotNull(org.tmapi.core.Locator loc)
nullloc - the locator to checkpublic static void subjectIdentifierNotNull(org.tmapi.core.Locator sid)
nullsid - the identifier to checkpublic static void valueNotNull(Object value)
nullvalue - the value to checkpublic static void locatorNotNull(org.tmapi.core.Locator loc)
nullloc - the locator to checkpublic static void datatypeNotNull(org.tmapi.core.Locator loc)
nullloc - the locator to checkpublic static void themeNotNull(org.tmapi.core.Topic theme)
IllegalArgumentException iff the theme is
null.theme - The theme.public static void themeNotNull(org.tmapi.core.Topic... themes)
IllegalArgumentException iff the theme is
null.themes - The array of themes.public static void typeNotNull(org.tmapi.core.Topic type)
IllegalArgumentException iff the type is
null.type - The type.public static void scopeInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic... scope)
topicMap - the topicMap creating a scoped statementscope - an array of themes (scope types)org.tmapi.core.ModelConstraintException - if a theme is not part of the topic mappublic static void typeInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic type)
topicMap - the topicMap creating a typed constructtype - type to checkorg.tmapi.core.ModelConstraintException - if the type is not part of the topic mappublic static void reifierInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic reifier)
topicMap - the topicMap creating a typed constructreifier - reifier to checkorg.tmapi.core.ModelConstraintException - if the reifier is not part of the topic mappublic static void playerInTopicMap(org.tmapi.core.TopicMap topicMap,
org.tmapi.core.Topic player)
topicMap - the topicMap creating a typed constructplayer - player to checkorg.tmapi.core.ModelConstraintException - if the player is not part of the topic map