public class PropertyInfoEA extends PropertyInfoImpl implements PropertyInfo
Type | Property and Description |
---|---|
PropertyInfo |
reverse |
Modifier and Type | Field and Description |
---|---|
protected String |
aggregationTypeCache
Aggregation type cache
|
protected boolean |
aliasAccessed
Flag used to prevent duplicate retrieval/computation of the alias of this
property.
|
protected ClassInfoEA |
classInfo
Class the property belongs to
|
protected Vector<Constraint> |
constraintsCache
Cache set of constraints
|
protected EADocument |
document
Access to the document object
|
protected boolean |
documentationAccessed
Flag used to prevent duplicate retrieval/computation of the documentation
of this property.
|
protected org.sparx.Attribute |
eaAttribute
EA attribute object, if this is an attribute
|
protected int |
eaAttributeId |
protected String |
eaName
Name of the property
|
protected String |
eaPropertyId
Model-unique id.
|
protected boolean |
globalIdentifierAccessed
Flag used to prevent duplicate retrieval/computation of the global
identifier of this property.
|
protected String |
initialValueCache
Initial value cache
|
protected Boolean |
isDerivedCache
Is derived cache
|
protected Boolean |
isNavigableCache
Is navigable cache
|
protected Boolean |
isOrderedCache
Cache for ordering in property
|
protected Boolean |
isReadOnlyCache
Is read only cache
|
protected Boolean |
isUniqueCache
Cache for uniqueness in property
|
protected Multiplicity |
multiplicity
Multiplicity of property
|
protected StructuredNumber |
sequenceNumber
Sequence number of property
|
protected ClassInfoEA |
typeClassInfo |
protected Type |
typeInfo
Type information
|
implementedByNilReason, nilReasonAllowed, profiles, qualifiers, restriction
descriptors, stereotypesCache, taggedValuesCache
GLOBAL_SEQUENCE_NUMBER_START_VALUE_FOR_ASSOCIATIONROLES, GLOBAL_SEQUENCE_NUMBER_START_VALUE_FOR_ATTRIBUTES
Constructor and Description |
---|
PropertyInfoEA(EADocument doc,
ClassInfoEA ci,
AssociationInfoEA ai,
boolean reversed,
org.sparx.ConnectorEnd eaCE,
ClassInfoEA tci)
Create a PropertyInfo object given an AssociationInfo and a ConnectorEnd.
|
PropertyInfoEA(EADocument doc,
ClassInfoEA ci,
org.sparx.Attribute attr)
Create a PropertyInfo object given an EA Attribute.
|
Modifier and Type | Method and Description |
---|---|
AssociationInfo |
association() |
Multiplicity |
cardinality()
Return multiplicity of property
|
Vector<Constraint> |
constraints()
This method returns the constraints associated with the class.
|
protected List<LangString> |
descriptorValues(Descriptor descriptor)
Look up the values for the descriptor, using the source as defined by the
configuration (or the default source, if the configuration does not state
anything regarding the source).
|
int |
getEAAttributeId() |
String |
id()
Return model-unique id of property.
|
ClassInfo |
inClass() |
void |
inClass(ClassInfo ci)
Make the property belong to the class given.
|
String |
initialValue()
Return the initialValue of the property in case such a thing is specified
in the model, null otherwise.
|
String |
inlineOrByReference()
From the tagged value "inlineOrByReference" find out whether the property
shall be translated into a construct which embeds the value into the
property ("inline") or refers it ("byreference").
|
boolean |
isAggregation()
Find out whether this property is an aggregation.
|
boolean |
isAttribute()
Indicate whether this property is an attribute (and not a role)
|
boolean |
isComposition()
Find out whether this property is a composition.
|
boolean |
isDerived()
Find out whether this property is a derived one.
|
boolean |
isNavigable()
Indicate whether the property is navigable.
|
boolean |
isOrdered()
Find out if the property represents an ordered collection.
|
boolean |
isReadOnly()
Retrieves information on whether the property is read only directly via
the EA API.
|
boolean |
isUnique()
Find out if the property allows duplicates in the values or if only
unique values are allowed.
|
Model |
model()
Return EA model object.
|
String |
name()
Obtain the name of the property.
|
Options |
options()
Return options and configuration object.
|
ShapeChangeResult |
result()
Return result object for error reporting.
|
PropertyInfo |
reverseProperty() |
StructuredNumber |
sequenceNumber() |
void |
taggedValue(String tag,
String value)
Set the tagged value for the tag given.
|
Type |
typeInfo()
Return id and name of type of property
|
void |
validateStereotypesCache() |
void |
validateTaggedValuesCache()
Create cache of stereotypes and tagged values
|
categoryOfValue, defaultCodeSpace, encodingRule, fullName, fullNameInSchema, getNextNumberForAssociationRoleWithoutExplicitSequenceNumber, getNextNumberForAttributeWithoutExplicitSequenceNumber, implementedByNilReason, inlineOrByReferenceFromEncodingRule, isMetadata, isRestriction, language, nilReasonAllowed, nilReasonAllowed, postprocessAfterLoadingAndValidate, profiles, qname, qualifier, qualifiers, voidable
aliasName, compareTo, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, descriptorSource, documentation, examples, globalIdentifier, legalBasis, matches, primaryCode, removeTaggedValue, setDescriptors, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
categoryOfValue, defaultCodeSpace, getNextNumberForAssociationRoleWithoutExplicitSequenceNumber, getNextNumberForAttributeWithoutExplicitSequenceNumber, implementedByNilReason, isMetadata, isRestriction, nilReasonAllowed, nilReasonAllowed, profiles, qname, qualifier, qualifiers, voidable
aliasName, dataCaptureStatements, definition, derivedDocumentation, description, descriptors, documentation, encodingRule, examples, fullName, fullNameInSchema, globalIdentifier, language, legalBasis, matches, postprocessAfterLoadingAndValidate, primaryCode, removeTaggedValue, stereotype, stereotypes, taggedValue, taggedValueInLanguage, taggedValues, taggedValues, taggedValuesAll, taggedValuesForTag, taggedValuesForTagAsLangStrings, taggedValuesForTagList, taggedValuesInLanguage
compareTo
public PropertyInfo reverseProperty
reverseProperty
in interface PropertyInfo
protected boolean aliasAccessed
protected boolean documentationAccessed
protected boolean globalIdentifierAccessed
protected EADocument document
protected ClassInfoEA classInfo
protected String eaPropertyId
protected String eaName
protected Type typeInfo
protected ClassInfoEA typeClassInfo
protected org.sparx.Attribute eaAttribute
protected int eaAttributeId
protected StructuredNumber sequenceNumber
protected Multiplicity multiplicity
protected String initialValueCache
protected Boolean isReadOnlyCache
protected Boolean isDerivedCache
protected Boolean isNavigableCache
protected String aggregationTypeCache
protected Boolean isOrderedCache
protected Boolean isUniqueCache
protected Vector<Constraint> constraintsCache
public PropertyInfoEA(EADocument doc, ClassInfoEA ci, org.sparx.Attribute attr)
public PropertyInfoEA(EADocument doc, ClassInfoEA ci, AssociationInfoEA ai, boolean reversed, org.sparx.ConnectorEnd eaCE, ClassInfoEA tci)
public Options options()
public ShapeChangeResult result()
public Multiplicity cardinality()
cardinality
in interface PropertyInfo
public ClassInfo inClass()
inClass
in interface PropertyInfo
public void inClass(ClassInfo ci)
inClass
in interface PropertyInfo
public String initialValue()
initialValue
in interface PropertyInfo
public boolean isReadOnly()
isReadOnly
in interface PropertyInfo
isReadOnly
in class PropertyInfoImpl
PropertyInfoImpl.isReadOnly()
public String inlineOrByReference()
inlineOrByReference
in interface PropertyInfo
public boolean isAggregation()
PropertyInfo
isAggregation
in interface PropertyInfo
PropertyInfo.isAggregation()
public boolean isAttribute()
PropertyInfo
isAttribute
in interface PropertyInfo
PropertyInfo.isAttribute()
public int getEAAttributeId()
public boolean isComposition()
PropertyInfo
isComposition
in interface PropertyInfo
PropertyInfo.isComposition()
public boolean isDerived()
PropertyInfo
isDerived
in interface PropertyInfo
PropertyInfo.isDerived()
public boolean isNavigable()
PropertyInfo
isNavigable
in interface PropertyInfo
PropertyInfo.isNavigable()
public boolean isOrdered()
PropertyInfo
isOrdered
in interface PropertyInfo
PropertyInfo.isOrdered()
public boolean isUnique()
PropertyInfo
isUnique
in interface PropertyInfo
PropertyInfo.isUnique()
public PropertyInfo reverseProperty()
reverseProperty
in interface PropertyInfo
public StructuredNumber sequenceNumber()
sequenceNumber
in interface PropertyInfo
public void validateStereotypesCache()
validateStereotypesCache
in interface Info
public void validateTaggedValuesCache()
Info
validateTaggedValuesCache
in interface Info
public void taggedValue(String tag, String value)
public Type typeInfo()
typeInfo
in interface PropertyInfo
public Vector<Constraint> constraints()
constraints
in interface PropertyInfo
null
public AssociationInfo association()
association
in interface PropertyInfo
protected List<LangString> descriptorValues(Descriptor descriptor)
InfoImpl
descriptorValues
in class InfoImpl
Copyright © 2018. All rights reserved.