public final class DatatypeDefinitionString extends DatatypeDefinition
The specific form of a DatatypeDefinitionString in a ReqIF file is as follows:
<DATATYPE-DEFINITION-STRING DESC="desc" IDENTIFIER="identifier" LAST-CHANGE="lastChange" LONG-NAME="longName" MAX-LENGTH="maxLength">
The following is the common list of XML attributes:
@DESC optional xsd:string description@IDENTIFIER required xsd:ID@LAST-CHANGE required xsd:dateTime@LONG-NAME optional xsd:string@MAX-LENGTH required xsd:integer specifies the maximum value allowed to be specified for any string based on this datatype| Modifier and Type | Method and Description |
|---|---|
long |
getMaxLength()
Gets the
@MAX-LENGTH attribute value for this DatatypeDefinitionString object. |
java.lang.String |
getMaxLengthText()
Returns the String representation for the
MAX-LENGTH attribute odf this DatatypeDefinitionString. |
void |
setMaxLength(long maxLength)
Sets the
@MAX_LENGTH attribute for this DatatypeDefinitionString object. |
getDatatypeName, toStringequals, getAlternativeID, getChildren, getDesc, getIdentifier, getLastChange, getLastChangeText, getLongName, getPathToRoot, getReqIFContent, hashCode, isUsed, isValidIdentifier, setAlternativeID, setDesc, setLastChange, setLongName, whereUsedpublic long getMaxLength()
@MAX-LENGTH attribute value for this DatatypeDefinitionString object.@MAX-LENGTH attributepublic java.lang.String getMaxLengthText()
MAX-LENGTH attribute odf this DatatypeDefinitionString.MAX-LENGTH attribute.public void setMaxLength(long maxLength)
throws InvalidValueException,
NotFoundException
@MAX_LENGTH attribute for this DatatypeDefinitionString object.
When setting this value, consider any existing AttributeDefinitionReal objects associated with a
SpecType subclasses that may have specified a default String value based on this DatatypeDefinitionString object
with lengths greater than this value. Similarly there may be existing AttributeValueString objects also with
String values with lengths greater than this value. Any attempt to set this value below and existing string length will cause an
InvalidValueException to be raised.
maxLength - the value to set for the @MAX-LENGTH attributeInvalidValueException - if the specified value is negative or lower than any existing AttributeValueString
that is linked to this datatype definition.NotFoundException - if the DatatypeDefinitionString is not in the Datatypes collection