public interface EdgeForm extends OsidRelationshipForm
This is the form for creating and updating Edges.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the EdgeAdminSession.
For each data element that may be set, metadata may be examined to
provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearBiDirectional()
Removes the bi-directional flag.
|
void |
clearCost()
Removes the edge cost.
|
void |
clearDirectional()
Removes the directional flag.
|
void |
clearDistance()
Removes the edge distance.
|
Metadata |
getBiDirectionalMetadata()
Gets the metadata for an edge direction.
|
Metadata |
getCostMetadata()
Gets the metadata for an edge cost.
|
Metadata |
getDirectionalMetadata()
Gets the metadata for a directional edges.
|
Metadata |
getDistanceMetadata()
Gets the metadata for an edge distance.
|
EdgeFormRecord |
getEdgeFormRecord(Type edgeRecordType)
Gets the
EdgeFormRecord corresponding to the given edge
record Type. |
void |
setBiDirectional(boolean direction)
Sets the direction.
|
void |
setCost(java.math.BigDecimal cost)
Sets the edge cost.
|
void |
setDirectional(boolean direction)
Sets the directional flag.
|
void |
setDistance(java.math.BigDecimal distance)
Sets the distance.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getDirectionalMetadata()
mandatory
- This method must be implemented. void setDirectional(boolean direction)
direction
- true
to set the edge as directional,
false
to set the edge as non-directionalInvalidArgumentException
- direction
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearDirectional()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getBiDirectionalMetadata()
mandatory
- This method must be implemented. void setBiDirectional(boolean direction)
direction
- true
to set the edge as
bi-directional, false
to set the edge as
uni-directionalInvalidArgumentException
- direction
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearBiDirectional()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCostMetadata()
mandatory
- This method must be implemented. void setCost(java.math.BigDecimal cost)
cost
- the new costInvalidArgumentException
- cost
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearCost()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDistanceMetadata()
mandatory
- This method must be implemented. void setDistance(java.math.BigDecimal distance)
distance
- the new distanceInvalidArgumentException
- distance
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearDistance()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. EdgeFormRecord getEdgeFormRecord(Type edgeRecordType) throws OperationFailedException
EdgeFormRecord
corresponding to the given edge
record Type.
edgeRecordType
- a edge record typeNullArgumentException
- edgeRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(edgeRecordType)
is false
mandatory
- This method must be implemented.