public final class Attribute extends Object
Constructor and Description |
---|
Attribute(String name,
String roleName,
Cardinality cardinality)
Create a new attribute with the specified name, role name,
and cardinality.
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound)
Create a new attribute with the specified name, role name,
cardinality, and bound flag.
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new attribute with the specified name, role name, and
cardinality and choose a collection description that satisfies the
specified boolean parameters.
|
Attribute(String name,
String roleName,
Cardinality cardinality,
boolean bound,
boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Create a new attribute with the specified name, role name,
cardinality, and bound flag and choose a collection description that satisfies the
specified boolean parameters.
|
Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription)
Create a new attribute from the specified parameters.
|
Attribute(String lower,
String mixed,
String upper,
String description,
Role role,
Cardinality cardinality,
CollectionDescription collectionDescription,
boolean bound)
Create a new attribute from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
Cardinality |
getCardinality()
Return the cardinality for this attribute.
|
CollectionDescription |
getCollectionDescription()
Return the collection description for this attribute.
|
String |
getDescription()
Return the description for this attribute.
|
String |
getLower()
Return the lowercase name for this attribute.
|
String |
getMixed()
Return the mixed-case name for this attribute.
|
Role |
getRole()
Return the role for this attribute.
|
String |
getUpper()
Return the uppercase name for this attribute.
|
boolean |
isBound()
Return true if this is a "bound" attribute.
|
public Attribute(String name, String roleName, Cardinality cardinality)
name
- attribute nameroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnepublic Attribute(String name, String roleName, Cardinality cardinality, boolean bound)
name
- attribute nameroleName
- role namecardinality
- cardinality, must not be null and must be one
of Cardinality.ZeroToOne or Cardinality.StrictlyOnebound
- true if this is a "bound" attributepublic Attribute(String name, String roleName, Cardinality cardinality, boolean indexed, boolean unique, boolean ordered, boolean sorted)
name
- attribute nameroleName
- role namecardinality
- cardinality, must not be nullindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Attribute(String name, String roleName, Cardinality cardinality, boolean bound, boolean indexed, boolean unique, boolean ordered, boolean sorted)
name
- attribute nameroleName
- role namecardinality
- cardinality, must not be nullbound
- true if this is a "bound" attributeindexed
- true if the collection should be indexedunique
- true if the collection should not allow duplicate elementsordered
- true if the collection should iterate over elements in insertion-ordersorted
- true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation timepublic Attribute(String lower, String mixed, String upper, String description, Role role, Cardinality cardinality, CollectionDescription collectionDescription)
lower
- lowercase name for this attributemixed
- mixed-case name for this attributeupper
- uppercase name for this attributedescription
- description for this attributerole
- role for this attribute, must not be nullcardinality
- cardinality for this attribute, must not be nullcollectionDescription
- collection description for this attributepublic Attribute(String lower, String mixed, String upper, String description, Role role, Cardinality cardinality, CollectionDescription collectionDescription, boolean bound)
lower
- lowercase name for this attributemixed
- mixed-case name for this attributeupper
- uppercase name for this attributedescription
- description for this attributerole
- role for this attribute, must not be nullcardinality
- cardinality for this attribute, must not be nullcollectionDescription
- collection description for this attributebound
- true if this is a "bound" attributepublic String getLower()
public String getMixed()
public String getUpper()
public String getDescription()
public Role getRole()
public Cardinality getCardinality()
public CollectionDescription getCollectionDescription()
public boolean isBound()
Copyright (c) 2004-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).