Interface RouteSegmentForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
This is the form for creating and updating RouteSegments . Like
all OsidForms , various data elements may be set here for use in
the create and update methods in the RouteSegmentAdminSession .
For each data element that may be set, metadata may be examined to provide
display hints or data constraints. Some data may be automatically derived
from the route segments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the distance.voidClears the ending instructions.voidclearETA()Clears the eta.voidClears the path.voidClears the starting instructions.Gets the metadata for the distance.Gets the metadata for the ending instructions.Gets the metadata for the estimated travel time.Gets the metadata for the path.getRouteSegmentFormRecord(Type routeSegmentRecordType) Gets theRouteSegmentFormRecordcorresponding to the given route segment recordType.Gets the metadata for the starting instructions.voidsetDistance(Distance distance) Sets the distance for this segment.voidsetEndingInstructions(String endingInstructions) Sets the ending instructions.voidSets the estimated travel time for this segment.voidSets the path for this segment.voidsetStartingInstructions(String startingInstructions) Sets the starting instructions.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.
-
Method Details
-
getStartingInstructionsMetadata
Metadata getStartingInstructionsMetadata()Gets the metadata for the starting instructions.- Returns:
- metadata for the starting instructions
- Compliance:
mandatory- This method must be implemented.
-
setStartingInstructions
Sets the starting instructions.- Parameters:
startingInstructions- the new starting instructions- Throws:
InvalidArgumentException-startingInstructionsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-startingInstructionsisnull- Compliance:
mandatory- This method must be implemented.
-
clearStartingInstructions
void clearStartingInstructions()Clears the starting instructions.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEndingInstructionsMetadata
Metadata getEndingInstructionsMetadata()Gets the metadata for the ending instructions.- Returns:
- metadata for the ending instructions
- Compliance:
mandatory- This method must be implemented.
-
setEndingInstructions
Sets the ending instructions.- Parameters:
endingInstructions- the new ending instructions- Throws:
InvalidArgumentException-endingInstructionsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-endingInstructionsisnull- Compliance:
mandatory- This method must be implemented.
-
clearEndingInstructions
void clearEndingInstructions()Clears the ending instructions.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getDistanceMetadata
Metadata getDistanceMetadata()Gets the metadata for the distance.- Returns:
- metadata for the distance
- Compliance:
mandatory- This method must be implemented.
-
setDistance
Sets the distance for this segment.- Parameters:
distance- the new distance- Throws:
InvalidArgumentException-distanceis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-distanceisnull- Compliance:
mandatory- This method must be implemented.
-
clearDistance
void clearDistance()Clears the distance.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getETAMetadata
Metadata getETAMetadata()Gets the metadata for the estimated travel time.- Returns:
- metadata for the eta
- Compliance:
mandatory- This method must be implemented.
-
setETA
Sets the estimated travel time for this segment.- Parameters:
eta- the new eta- Throws:
InvalidArgumentException-etais invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-etaisnull- Compliance:
mandatory- This method must be implemented.
-
clearETA
void clearETA()Clears the eta.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPathMetadata
Metadata getPathMetadata()Gets the metadata for the path.- Returns:
- metadata for the path
- Compliance:
mandatory- This method must be implemented.
-
setPath
Sets the path for this segment.- Parameters:
pathId- the new path- Throws:
InvalidArgumentException-pathIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-pathIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPath
void clearPath()Clears the path.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRouteSegmentFormRecord
RouteSegmentFormRecord getRouteSegmentFormRecord(Type routeSegmentRecordType) throws OperationFailedException Gets theRouteSegmentFormRecordcorresponding to the given route segment recordType.- Parameters:
routeSegmentRecordType- a route segment record type- Returns:
- the route segment form record
- Throws:
NullArgumentException-routeSegmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(routeSegmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-