public class OccurrenceConstraint extends AbstractScopedTypedCardinalityConstraint
Modifier and Type | Field and Description |
---|---|
protected int |
internal |
protected TopicConstraintCollection |
parent |
static int |
RESOURCE_EITHER
INTERNAL: Used to indicate that occurrences can be either internal or
external.
|
static int |
RESOURCE_EXTERNAL
INTERNAL: Used to indicate that occurrences can only be external, that
is be represented using the URI of the resource.
|
static int |
RESOURCE_INTERNAL
INTERNAL: Used to indicate that occurrences can only be internal, that
is be represented using the <resourceData> element in XTM 1.0.
|
typespec
scope
maximum, minimum
INFINITY
Constructor and Description |
---|
OccurrenceConstraint(TopicConstraintCollection parent)
INTERNAL: Creates a new occurrence constraint in the given
collection of topic constraints.
|
Modifier and Type | Method and Description |
---|---|
int |
getInternal()
INTERNAL: Returns a value indicating whether instances of this
occurrence type can be internal, external, or both.
|
void |
setInternal(int internal)
INTERNAL: Used to control whether instances of occurrence type can be
internal, external, or both.
|
getTypeSpecification, matches, setTypeSpecification
getScopeSpecification, setScopeSpecification
getMaximum, getMinimum, setMaximum, setMinimum
public static final int RESOURCE_INTERNAL
public static final int RESOURCE_EXTERNAL
public static final int RESOURCE_EITHER
protected TopicConstraintCollection parent
protected int internal
public OccurrenceConstraint(TopicConstraintCollection parent)
public void setInternal(int internal)
public int getInternal()