public class WindowsDrive extends AbstractContainer
Constructor and Description |
---|
WindowsDrive(java.lang.String driveLetter)
Create the object for a specific drive letter.
|
Modifier and Type | Method and Description |
---|---|
void |
appendNameTo(java.lang.StringBuilder builder)
Adds the name representation (which might be more than just the name itself)) to the given builder.
|
protected void |
internalValidate() |
addItem, basicAdd, basicEquals, basicHashCode, basicRemove, contains, equals, getItemList, getItems, getName, hashCode, isEmpty, release, removeItem, setName, size, toString
public WindowsDrive(java.lang.String driveLetter)
driveLetter
- The letter for the drive which must be in the range of 'a' to 'z'.java.lang.IllegalArgumentException
- If the given string contains less or more than one character
or if it is null or if it contains any character that is not allowed as drive letter.public void appendNameTo(java.lang.StringBuilder builder)
INamedElement
appendNameTo
in interface INamedElement
appendNameTo
in class AbstractContainer
builder
- The builder to which the name representation must be added.protected void internalValidate()