public final class FieldAssignment extends Object
Constructor and Description |
---|
FieldAssignment(TopicType topicType,
TopicType declaredTopicType,
FieldDefinition fieldDefinition)
Creates a new field assignment object.
|
FieldAssignment(TopicType topicType,
TopicType declaredTopicType,
FieldDefinition fieldDefinition,
int cachedOrder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Cardinality |
getCardinality() |
TopicType |
getDeclaredTopicType()
Returns the topic type.
|
FieldDefinition |
getFieldDefinition()
Returns the field type.
|
int |
getOrder()
Returns the ordering key of the field on this topic type.
|
int |
getOrder(TopicType t)
Returns the ordering key of the field on the topic type sent in as an
argument.
|
TopicType |
getTopicType()
Returns the topic type.
|
int |
hashCode() |
void |
moveAfter(FieldAssignment other)
Change field order so that this field is ordered directly after the other field.
|
static void |
setOrder(TopicMap topicmap,
TopicIF tt,
TopicIF fd,
int order,
boolean replace) |
public FieldAssignment(TopicType topicType, TopicType declaredTopicType, FieldDefinition fieldDefinition)
public FieldAssignment(TopicType topicType, TopicType declaredTopicType, FieldDefinition fieldDefinition, int cachedOrder)
public TopicType getTopicType()
public TopicType getDeclaredTopicType()
public FieldDefinition getFieldDefinition()
public Cardinality getCardinality()
public int getOrder()
public int getOrder(TopicType t)
public static void setOrder(TopicMap topicmap, TopicIF tt, TopicIF fd, int order, boolean replace)
public void moveAfter(FieldAssignment other)
other
- the field to order after.