public final class SpecifiedValues
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
contains(EnumValue enumValue)
Checks whether the specified
EnumValue exists in this collection. |
boolean |
containsIdentifiableWithLongName(java.lang.String longName)
Checks for existence of an
Identifiable in this collection with the specified longName . |
boolean |
containsKey(java.lang.String identifier)
Checks whether this collection contains the
Identifiable whose identfier matches that specified in the argument |
EnumValue |
createEnumValue(java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
long key,
java.lang.String otherContent)
Constructs a
EnumValue objects and adds it to this object. |
EnumValue |
find(java.lang.String longName)
Returns the first occurrence of an
EnumValue object with the specified longName that is contained in this collection. |
EnumValue |
get(int index)
Returns the
EnumValue object at the specified index that is contained in this collection. |
EnumValue |
get(java.lang.String identifier)
Returns the
EnumValue object with the specified identifier that is contained in this collection. |
int |
getCount()
Returns the count of items in this collection.
|
java.util.Iterator<EnumValue> |
iterator() |
void |
remove(EnumValue enumValue)
Removes an
EnumValue object from this collection. |
java.util.stream.Stream<EnumValue> |
stream() |
java.lang.String |
toString() |
public EnumValue createEnumValue(java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, long key, java.lang.String otherContent) throws InvalidValueException, DuplicateIdentifierException, InvalidIdentifierException, NotFoundException
EnumValue
objects and adds it to this object.desc
- the value to be assigned to the DESC attribute, can be nulllastChange
- the date value to be assigned to the LAST-CHANGE attribute, can be null in which case 'now' is assignedlongName
- the value to be assigned to the LONG-NAME attribute, can be nullidentifier
- the identifier to assign to this object, can be null to auto-assignalternativeID
- the value to be assigned to the ALTERNATIVE-ID::IDENTIFIER attribute, can be nullkey
- the value to be assigned to the PROPERTIES::EMBEDDED-VALUE::KEY attribute, not nullotherContent
- the value to be assigned to the PROPERTIES::EMBEDDED-VALUE::OTHER-CONTENT attribute, not nullEnumValue
object, not nullDuplicateIdentifierException
- if the specified identifier is not uniqueInvalidValueException
- if otherContent
is nullInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatNotFoundException
- if the owning DatatypeDefinitionEnumeration
has been removed from the Datatypes
collectionpublic void remove(EnumValue enumValue) throws NotFoundException, ReferencedException
EnumValue
object from this collection.enumValue
- the EnumValue
object to remove, not nullNotFoundException
- if the specified EnumValue
object is not in the collection or the owning
DatatypeDefinitionEnumeration
has been removed from the Datatypes
collectionReferencedException
- if the specified EnumValue
object is referenced in other AttributeDefinition
or AttributeValue
objectspublic java.util.stream.Stream<EnumValue> stream()
public java.util.Iterator<EnumValue> iterator()
iterator
in interface java.lang.Iterable<EnumValue>
public EnumValue get(int index) throws java.lang.IndexOutOfBoundsException
EnumValue
object at the specified index that is contained in this collection.public EnumValue get(java.lang.String identifier) throws UnknownIdentifierException
EnumValue
object with the specified identifier that is contained in this collection.identifier
- the identifier of the collection member to returnEnumValue
subclass with the specified identifierUnknownIdentifierException
- if the object identified by the Identifier parameter can't be foundpublic EnumValue find(java.lang.String longName)
EnumValue
object with the specified longName that is contained in this collection.longName
- the longName of the EnumValue to return, not nullEnumValue
subclass with the specified longName, can be nullpublic boolean contains(EnumValue enumValue)
EnumValue
exists in this collection.enumValue
- the EnumValue
to check, not nulltrue
if the specified enumValue exists
, false
otherwisepublic boolean containsKey(java.lang.String identifier)
Identifiable
whose identfier matches that specified in the argumentidentifier
- the identifier of the member to check for occurrence in the collection, not nullpublic boolean containsIdentifiableWithLongName(java.lang.String longName)
Identifiable
in this collection with the specified longName
.longName
- the value of longName
to check, nullable since longName
can be nullIdentifiable
with the specified longName
exists in this collection, otherwise falsepublic java.lang.String toString()
toString
in class java.lang.Object
public int getCount()