public final class SpecAttributes
extends java.lang.Object
AttributeDefinition
objects and owned by SpecType
.Modifier and Type | Method and Description |
---|---|
boolean |
contains(AttributeDefinition<?> attributeDefinition)
Checks whether the specified
AttributeDefinition 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 |
AttributeDefinitionBoolean |
createAttributeDefinition(DatatypeDefinitionBoolean datatypeDefinitionBoolean,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionBoolean and adds it to this SpecType subclass. |
AttributeDefinitionDate |
createAttributeDefinition(DatatypeDefinitionDate datatypeDefinitionDate,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionDate and adds it to this SpecType subclass. |
AttributeDefinitionEnumeration |
createAttributeDefinition(DatatypeDefinitionEnumeration datatypeDefinitionEnumeration,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable,
boolean multiValued)
Constructs a new
AttributeDefinitionEnumeration and adds it to this SpecType subclass. |
AttributeDefinitionInteger |
createAttributeDefinition(DatatypeDefinitionInteger datatypeDefinitionInteger,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionInteger and adds it to this SpecType subclass. |
AttributeDefinitionReal |
createAttributeDefinition(DatatypeDefinitionReal datatypeDefinitionReal,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionReal and adds it to this SpecType subclass. |
AttributeDefinitionString |
createAttributeDefinition(DatatypeDefinitionString datatypeDefinitionString,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionString and adds it to this SpecType subclass. |
AttributeDefinitionXHTML |
createAttributeDefinition(DatatypeDefinitionXHTML datatypeDefinitionXHTML,
java.lang.String desc,
java.util.Date lastChange,
java.lang.String longName,
java.lang.String identifier,
java.lang.String alternativeID,
boolean isEditable)
Constructs a new
AttributeDefinitionXHTML and adds it to this SpecType subclass. |
AttributeDefinition |
find(java.lang.String longName)
Returns the first occurrence of an
AttributeDefinition object with the specified longName that is contained in this collection. |
AttributeDefinition<?> |
get(int index)
Returns the
AttributeDefinition object at the specified index that is contained in this collection. |
AttributeDefinition<?> |
get(java.lang.String identifier)
Returns the
AttributeDefinition object with the specified identifier that is contained in this collection. |
int |
getCount()
Returns the count of items in this collection.
|
java.util.Iterator<AttributeDefinition<?>> |
iterator() |
void |
remove(AttributeDefinition<?> attributeDefinition)
Removes a
AttributeDefinition object from this collection. |
java.util.stream.Stream<AttributeDefinition<?>> |
stream() |
java.lang.String |
toString() |
public java.util.stream.Stream<AttributeDefinition<?>> stream()
public java.util.Iterator<AttributeDefinition<?>> iterator()
iterator
in interface java.lang.Iterable<AttributeDefinition<?>>
public AttributeDefinition<?> get(int index) throws java.lang.IndexOutOfBoundsException
AttributeDefinition
object at the specified index that is contained in this collection.index
- the index of the AttributeDefinition
to return from the collection, >= 0
and <
collection sizeAttributeDefinition
object at the specified indexjava.lang.IndexOutOfBoundsException
- if the index is < 0
or >=
countpublic AttributeDefinition<?> get(java.lang.String identifier) throws UnknownIdentifierException
AttributeDefinition
object with the specified identifier that is contained in this collection.identifier
- the identifier of the collection member to returnAttributeDefinition
subclass with the specified identifierUnknownIdentifierException
- if the object identified by the Identifier parameter can't be foundpublic AttributeDefinition find(java.lang.String longName)
AttributeDefinition
object with the specified longName that is contained in this collection.longName
- the longName of the AttributeDefinition to return, not nullAttributeDefinition
subclass with the specified longName, can be nullpublic boolean contains(AttributeDefinition<?> attributeDefinition)
AttributeDefinition
exists in this collection.attributeDefinition
- the AttributeDefinition
to check, not nulltrue
if the specified attributeDefinition exists
, false
otherwisepublic void remove(AttributeDefinition<?> attributeDefinition) throws NotFoundException, ReferencedException
AttributeDefinition
object from this collection.attributeDefinition
- the AttributeDefinition
object to remove, not nullNotFoundException
- if the specified AttributeDefinition
object is not in the collectionReferencedException
- if the specified AttributeDefinition
object is referenced in other AttributeValue
objectspublic AttributeDefinitionBoolean createAttributeDefinition(DatatypeDefinitionBoolean datatypeDefinitionBoolean, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionBoolean
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionBoolean
- the DatatypeDefinitionBoolean
object on which to base this AttributeDefinitionBoolean
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionBoolean
, not nullNotFoundException
- if datatypeDefinitionBoolean
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionDate createAttributeDefinition(DatatypeDefinitionDate datatypeDefinitionDate, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionDate
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionDate
- the DatatypeDefinitionDate
object on which to base this AttributeDefinitionDate
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionDate
, not nullNotFoundException
- if datatypeDefinitionDate
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionEnumeration createAttributeDefinition(DatatypeDefinitionEnumeration datatypeDefinitionEnumeration, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable, boolean multiValued) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionEnumeration
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionEnumeration
- the DatatypeDefinitionEnumeration
object on which to base this AttributeDefinitionEnumeration
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributemultiValued
- the value to be assigned to the MULTI-VALUED attributeAttributeDefinitionEnumeration
, not nullNotFoundException
- if datatypeDefinitionEnumeration
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionInteger createAttributeDefinition(DatatypeDefinitionInteger datatypeDefinitionInteger, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionInteger
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionInteger
- the DatatypeDefinitionInteger
object on which to base this AttributeDefinitionInteger
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionInteger
, not nullNotFoundException
- if datatypeDefinitionInteger
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionReal createAttributeDefinition(DatatypeDefinitionReal datatypeDefinitionReal, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionReal
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionReal
- the DatatypeDefinitionReal
object on which to base this AttributeDefinitionReal
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionReal
, not nullNotFoundException
- if datatypeDefinitionReal
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionString createAttributeDefinition(DatatypeDefinitionString datatypeDefinitionString, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionString
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionString
- the DatatypeDefinitionString
object on which to base this AttributeDefinitionString
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionString
, not nullNotFoundException
- if datatypeDefinitionString
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic AttributeDefinitionXHTML createAttributeDefinition(DatatypeDefinitionXHTML datatypeDefinitionXHTML, java.lang.String desc, java.util.Date lastChange, java.lang.String longName, java.lang.String identifier, java.lang.String alternativeID, boolean isEditable) throws NotFoundException, DuplicateIdentifierException, NotSupportedException, InvalidIdentifierException
AttributeDefinitionXHTML
and adds it to this SpecType
subclass.
LONG-NAME is not optional and must be specified
datatypeDefinitionXHTML
- the DatatypeDefinitionXHTML
object on which to base this AttributeDefinitionXHTML
object, not nulldesc
- 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, not 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 nullisEditable
- the value to be assigned to the IS-EDITABLE attributeAttributeDefinitionXHTML
, not nullNotFoundException
- if datatypeDefinitionXHTML
cannot be found in the Datatypes
collection,
or this SpecType
has been removed from the SpecTypes
collectionDuplicateIdentifierException
- if the specified identifier is not uniqueNotSupportedException
- if an attempt is made to add attribute definitions to a RelationGroupType
objectInvalidIdentifierException
- if the specified identifier is not valid xsd:ID formatpublic 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()