Package | Description |
---|---|
org.tanjakostic.jcleancim.docgen.collector.impl | |
org.tanjakostic.jcleancim.docgen.collector.impl.ag | |
org.tanjakostic.jcleancim.model |
Classes being created by a builder or with the API (code) to hold the in-memory UML model.
|
org.tanjakostic.jcleancim.statistics |
Classes responsible for tracking and reporting model statistics.
|
org.tanjakostic.jcleancim.validation |
Classes responsible for validating the model and the rules to apply.
|
Modifier and Type | Method and Description |
---|---|
private java.util.LinkedHashMap<EntryDoc,UmlAttribute> |
CdcAttributesDoc.collectEntryDocsInDefaultOrder(java.util.Collection<AttributeGroup> retainedGroups) |
Modifier and Type | Method and Description |
---|---|
private EntryDocImpl |
CdcAttributesDoc.createEntry(UmlAttribute a,
boolean isNative,
java.util.Map<EntryDoc,UmlAttribute> collector)
Returns null in case of an FCDA with name starting with "__" and FC="SE".
|
private java.lang.String |
CdcAttributesDoc.determinePresCondText(UmlAttribute a,
PresenceCondition pc) |
protected static java.lang.String |
AbstractPropertiesDoc.getInitValAsPrefix(UmlAttribute attr)
Returns the formatted initial value detail (const/default/range) to be used as prefix.
|
protected static java.lang.String |
AbstractPropertiesDoc.getInitValAsSuffix(UmlAttribute attr)
Returns the formatted initial value detail (const/initial/range) to be used as suffix.
|
private static void |
DefaultAttributesDoc.initAttributeRawData(EntryDocImpl entry,
UmlAttribute a) |
private static void |
DaAttributesDoc.initBdaRawData(EntryDocImpl entry,
UmlAttribute a,
boolean isInherited,
RawData values,
PresenceCondition pc,
java.lang.String context) |
private static void |
CdcAttributesDoc.initFcdaRawData(RawData entry,
UmlAttribute a,
boolean isInherited,
RawData src,
PresenceCondition pc) |
private void |
LnAttributesDoc.initRawFromSplitTypeName(RawData values,
UmlAttribute attr)
Sets value for keys "name", "trans",
"typeText"; and if applicable, for
"transient",
"type", and those as potentially set
by
Attributes61850Doc.deduceTypeText(UmlClass, RawData, boolean, boolean, boolean) . |
private void |
CdcAttributesDoc.initValuesFromSplitTypeName(RawData values,
UmlAttribute a)
|
private boolean |
DataIndexDoc.toSkipSgSeFcda(UmlAttribute a)
FIXME: hack to avoid printing _setVal and __setVal etc.
|
Modifier and Type | Method and Description |
---|---|
private EntryDocImpl |
CdcAttributesDoc.createEntry(UmlAttribute a,
boolean isNative,
java.util.Map<EntryDoc,UmlAttribute> collector)
Returns null in case of an FCDA with name starting with "__" and FC="SE".
|
protected void |
AbstractPropertiesDoc.filterAttributes(UmlClass c,
java.util.Collection<UmlAttribute> retainedNatives,
java.util.Collection<UmlAttribute> retainedInheriteds) |
protected void |
AbstractPropertiesDoc.filterAttributes(UmlClass c,
java.util.Collection<UmlAttribute> retainedNatives,
java.util.Collection<UmlAttribute> retainedInheriteds) |
private Reordering |
CdcAttributesDoc.specifyReordering(java.util.LinkedHashMap<EntryDoc,UmlAttribute> entryDocs) |
Constructor and Description |
---|
AbbrPackageDoc(DocgenConfig docgenCfg,
java.util.List<UmlAttribute> attributes,
UmlPackage p)
Constructor.
|
DataIndexDoc(DocgenConfig docgenCfg,
java.util.Map<java.lang.String,java.util.List<UmlAttribute>> attributesPerName,
java.lang.String packageName)
Constructor.
|
FcPackageDoc(DocgenConfig docgenCfg,
java.util.Collection<UmlAttribute> literals,
UmlPackage p)
Constructor.
|
PresCondPackageDoc(DocgenConfig docgenCfg,
java.util.Collection<UmlAttribute> literals,
UmlPackage p)
Constructor.
|
TrgOpPackageDoc(DocgenConfig docgenCfg,
java.util.Collection<UmlAttribute> literals,
UmlPackage p)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<UmlAttribute> |
AttributeGroup._inheritedAttributes |
private java.util.Collection<UmlAttribute> |
AttributeGroup._nativeAttributes |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<UmlAttribute> |
AttributeGroup.getInheritedAttributes() |
java.util.Collection<UmlAttribute> |
AttributeGroup.getNativeAttributes() |
private static java.util.Collection<UmlAttribute> |
AttributeGroup.selectAttributes(CategoryKind category,
java.util.Collection<UmlAttribute> attributes) |
Modifier and Type | Method and Description |
---|---|
private static java.util.Collection<UmlAttribute> |
AttributeGroup.selectAttributes(CategoryKind category,
java.util.Collection<UmlAttribute> attributes) |
Constructor and Description |
---|
AttributeGroup(AGSpec agSpec,
java.util.Collection<UmlAttribute> nativeAttributes,
java.util.Collection<UmlAttribute> inheritedAttributes) |
AttributeGroup(AGSpec agSpec,
java.util.Collection<UmlAttribute> nativeAttributes,
java.util.Collection<UmlAttribute> inheritedAttributes) |
AttributeGroup(java.util.Collection<UmlAttribute> nativeAttributes,
java.util.Collection<UmlAttribute> inheritedAttributes) |
AttributeGroup(java.util.Collection<UmlAttribute> nativeAttributes,
java.util.Collection<UmlAttribute> inheritedAttributes) |
Modifier and Type | Field and Description |
---|---|
private UmlAttribute |
UmlConstraint._containingAttribute |
private UmlAttribute |
PresenceCondition._pcDefinitionLiteral |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<UmlAttribute>> |
UmlModel._abbrTerms |
private java.util.Map<java.lang.String,UmlAttribute> |
UmlModel._attributes |
private java.util.Collection<UmlAttribute> |
UmlClass._attributes |
private java.util.Map<java.lang.String,UmlAttribute> |
UmlModel._presenceConditions |
Modifier and Type | Method and Description |
---|---|
(package private) UmlAttribute |
UmlModel.addAttribute(UmlAttribute a)
Intended to be called by
UmlClass and tests only; if a is abbreviation
literal, stores is also in the abbreviation literal's map. |
(package private) UmlAttribute |
UmlClass.addAttribute(UmlClass type,
java.lang.String name,
java.lang.String... stereotypes)
For testing only: Adds attribute with default data.
|
UmlAttribute |
UmlClass.addAttribute(UmlClass type,
UmlObjectData objData,
UmlAttribute.Data data)
Creates from arguments an attribute or enumeration literal, adds it to itself and to the
model, populates afferent/efferent collections for this and for
type , and
returns the newly created object. |
(package private) UmlAttribute |
UmlClass.addLiteral(java.lang.String name)
For testing only: Adds literal with default data.
|
(package private) UmlAttribute |
UmlClass.addLiteral(java.lang.String name,
java.lang.String initValue)
For testing only: Adds literal with init value and with default data.
|
(package private) static UmlAttribute |
UmlAttribute.basic(UmlClass containingClass,
UmlClass type,
java.lang.String name)
For tests only: Constructs attribute (that is not literal) with given name.
|
(package private) static UmlAttribute |
UmlAttribute.basic(UmlClass containingClass,
UmlClass type,
java.lang.String name,
java.lang.String initVal)
For tests only: Constructs attribute with given constant value (static and const true).
|
(package private) static UmlAttribute |
UmlAttribute.basic(UmlClass containingClass,
UmlClass type,
java.lang.String name,
UmlMultiplicity mult)
For tests only: Constructs attribute with given multiplicity.
|
(package private) static UmlAttribute |
UmlAttribute.basicLiteral(UmlClass containingClass,
java.lang.String name)
For tests only: Constructs literal with given name.
|
UmlAttribute |
UmlConstraint.getContainingAttribute()
Returns containing attribute if this is an attribute constraint, null otherwise.
|
UmlAttribute |
PresenceCondition.getDefinitionLiteral()
Returns (potentially null) UML literal defining this presence condition; it is null in case
there is an error in the model and the presence condition found in the class is not one a
standard one.
|
UmlAttribute |
UmlAttribute.getSiblingToMoveAfter()
Returns (native or inherited) sibling attribute whose name is defined as value of the tag
UML.TAG_moveAfter if found, null otherwise; in case there are multiple sibling
attributes with that same name, returns the first one. |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<UmlAttribute> |
UmlAttribute.findAbbreviationLiterals(java.util.Collection<UmlAttribute> attributes) |
java.util.Set<UmlAttribute> |
UmlClass.findAttributes(java.lang.String attrName)
Returns (native) attributes with
attrName . |
java.util.List<UmlAttribute> |
UmlModel.findAttributes(java.lang.String packageName,
boolean includeLiterals,
boolean includeNonLiterals)
Returns all attributes in and under the package
packageName according to the
given filters (note: setting both includeLiterals and
includeNonLiterals to true returns all attributes). |
java.util.List<UmlAttribute> |
UmlModel.findAttributes(java.lang.String packageName,
boolean includeLiterals,
boolean includeNonLiterals,
boolean namesOrdered)
Same as
UmlModel.findAttributes(String, boolean, boolean) , but allows for ordering per name
to be specified. |
java.util.Set<UmlAttribute> |
UmlClass.findAttributes(java.lang.String attrName,
UmlClass.InheritedKind inh)
Returns attributes with
attrName selectively, according to inheritance criterion
inh . |
java.util.Set<UmlAttribute> |
UmlClass.findAttributes(UmlClass attrType)
Returns (native) attributes whose type is
attrType . |
java.util.Set<UmlAttribute> |
UmlClass.findAttributes(UmlClass attrType,
UmlClass.InheritedKind inh)
Returns attributes of type
attrType selectively, according to inheritance
criterion inh . |
java.util.Map<java.lang.String,java.util.List<UmlAttribute>> |
UmlClass.findAttributesPerInitialValue()
Returns (native) attributes indexed per their initial value.
|
java.util.Collection<UmlAttribute> |
UmlModel.findAttributesWithConstraints()
Returns attributes that have any kind of constraint (own and by class).
|
java.util.Map<java.lang.String,java.util.List<UmlAttribute>> |
UmlModel.findAttributesWithDuplicates(java.lang.String packageName,
boolean includeLiterals,
boolean includeNonLiterals,
boolean namesOrdered)
Returns all attributes per name in and under the package
packageName , grouped by
their name and according to the given filters (note: setting both
includeLiterals and includeNonLiterals to true returns all
attributes). |
java.util.Collection<UmlAttribute> |
UmlModel.findDOAttributes()
Returns attributes on logical nodes (not in meta-model).
|
static java.util.Collection<UmlAttribute> |
UmlAttribute.findEnumLiterals(java.util.Collection<UmlAttribute> attributes) |
java.util.Collection<UmlAttribute> |
UmlModel.findMultivaluedAttributes()
Returns multi-valued attributes.
|
java.util.Map<java.lang.String,UmlAttribute> |
UmlModel.findPresenceConditionLiterals()
Returns all literals that represent presence conditions.
|
static java.util.Collection<UmlAttribute> |
UmlAttribute.findPresenceConditionLiterals(java.util.Collection<UmlAttribute> attributes) |
java.util.Map<java.lang.String,java.util.List<UmlAttribute>> |
UmlModel.getAbbreviationLiterals()
(IEC61850) Returns all abbreviation literal indexed by name.
|
java.util.Collection<UmlAttribute> |
UmlAttribute.getAllSiblings()
Returns all (native and inherited) sibling attributes.
|
java.util.Collection<UmlAttribute> |
UmlModel.getAttributes()
Returns all attributes in this model.
|
java.util.Collection<UmlAttribute> |
UmlClass.getAttributes()
Returns native attributes.
|
java.util.Set<UmlAttribute> |
UmlClass.getInheritedAttributes()
Returns inherited attributes.
|
Modifier and Type | Method and Description |
---|---|
(package private) UmlAttribute |
UmlModel.addAttribute(UmlAttribute a)
Intended to be called by
UmlClass and tests only; if a is abbreviation
literal, stores is also in the abbreviation literal's map. |
private boolean |
UmlPackage.attributeNeedsInitialisation(UmlAttribute att,
java.lang.String expectedAttrName,
java.lang.String value) |
(package private) static UmlConstraint |
UmlConstraint.basic(UmlAttribute containingAttribute,
java.lang.String name,
java.lang.String condition)
For tests only: Constructs attribute constraint.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<UmlAttribute> |
UmlAttribute.findAbbreviationLiterals(java.util.Collection<UmlAttribute> attributes) |
static java.util.Collection<UmlAttribute> |
UmlAttribute.findEnumLiterals(java.util.Collection<UmlAttribute> attributes) |
static java.util.Collection<UmlAttribute> |
UmlAttribute.findPresenceConditionLiterals(java.util.Collection<UmlAttribute> attributes) |
Constructor and Description |
---|
UmlConstraint(UmlAttribute containingAttribute,
UmlObjectData objData,
UmlConstraint.Data data)
Intended to be called by
UmlAttribute and tests only. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<UmlKind,java.util.List<UmlAttribute>> |
StatsPerOwner._attributes |
private java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> |
ModelStats._scopedAttributes |
Modifier and Type | Method and Description |
---|---|
java.util.Map<UmlKind,java.util.List<UmlAttribute>> |
StatsPerOwner.getAttributes() |
java.util.Map<OwningWg,java.util.Collection<UmlAttribute>> |
ModelStats.getScopedAttributes() |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateName._allAbbrLiterals |
private java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateDescription._allAbbrLiterals |
private java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAbbreviationLiteralsNeverUsedInDOName._allAbbrLiterals |
private java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAttributesWithSameNameDifferentType._allAttributes |
private java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints._allPresCondLiterals |
private java.util.List<UmlAttribute> |
AttributeValidator._scopedUmlObjects |
private java.util.List<UmlAttribute> |
ClassValidator.CimClassesNeverUsedAsTypeForAttribute._scopedWrtUmlAttributes |
Modifier and Type | Method and Description |
---|---|
private static java.util.Set<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.collectUsedCondLiterals(java.util.Collection<UmlAttribute> attributes) |
private static java.util.Set<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.findPcLiteralsToIgnore(java.util.Set<UmlAttribute> allCondLiterals) |
java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateName.getObjsToTestAgainst() |
java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateDescription.getObjsToTestAgainst() |
java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850DOAttributesWithSameNameDifferentType.getObjsToTestAgainst() |
java.util.Collection<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.getObjsToTestAgainst() |
java.util.List<UmlAttribute> |
AttributeValidator.getScopedUmlObjects() |
Modifier and Type | Method and Description |
---|---|
private boolean |
AttributeValidator.AttributesWithInexistingEnumLiteralAsInitValue.isOfEnumeratedType(UmlAttribute attr) |
protected boolean |
AttributeValidator.AttributesMissingDoc.skipValidation(UmlAttribute o) |
protected boolean |
AttributeValidator.AttributesWithBadDocStart.skipValidation(UmlAttribute o) |
protected boolean |
AttributeValidator.AttributesWithBadDocEnd.skipValidation(UmlAttribute o) |
protected boolean |
AttributeValidator.CimAttributesWithBadCharacterInName.skipValidation(UmlAttribute o) |
protected boolean |
AttributeValidator.Iec61850AttributesWithBadCharacterInName.skipValidation(UmlAttribute o) |
private static boolean |
AttributeValidator.skipValidationDocRelated(UmlAttribute a) |
void |
AttributeValidator.EnumLiteralsWithSuperfluousType.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.EnumLiteralsWithoutEnumStereotype.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithInvalidMultiplicity.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesThatShouldBeOptional.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithInvalidTypeNull.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithInvalidTypeString.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithTypeIdMismatch.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesThatShouldBePublic.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesThatAreStaticButNotConst.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesThatAreNotStaticNonConstWithInitVal.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesThatAreConstNonStatic.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesThatAreEnumsInNonEnumeratedClass.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesThatShouldBeReplacedWithAssociation.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWhoseTypeIsInformative.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850AttributesWithInexistingSibling.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesWithFlagInName.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAttributesWithTooLongName.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850FCDAAttributesWithMissingConstraint.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithInexistingEnumLiteralAsInitValue.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAttributesWithNameMissingAbbreviation.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesNameStartingWithUpperCase.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesNameShouldBeSingular.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.CimAttributesNameShouldNotStartWithClassName.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850AbbreviationLiteralsNameStartingWithLowerCase.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAttributesNameStartingWithLowerCase.validate(UmlAttribute o,
ModelIssues issues) |
void |
AttributeValidator.AttributesWithTypeFromUnallowedOwner.validate(UmlAttribute o,
ModelIssues issues) |
Modifier and Type | Method and Description |
---|---|
private static java.util.Set<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.collectUsedCondLiterals(java.util.Collection<UmlAttribute> attributes) |
private static java.util.Set<UmlAttribute> |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.findPcLiteralsToIgnore(java.util.Set<UmlAttribute> allCondLiterals) |
private static boolean |
ClassValidator.EnumClassesWithSomeCodesMissing.hasNoCodes(java.util.Map<java.lang.String,java.util.List<UmlAttribute>> literalsPerCode) |
private static boolean |
ClassValidator.EnumClassesWithSomeCodesMissing.hasOnlyNonEmptyCodes(java.util.Map<java.lang.String,java.util.List<UmlAttribute>> literalsPerCode) |
private static boolean |
ClassValidator.EnumClassesWithDuplicateCodes.hasOnlyNonEmptyCodes(java.util.Map<java.lang.String,java.util.List<UmlAttribute>> literalsPerCode) |
void |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateName.validate(java.util.List<UmlAttribute> attributes,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateDescription.validate(java.util.List<UmlAttribute> attributes,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAbbreviationLiteralsNeverUsedInDOName.validate(java.util.List<UmlAttribute> attributes,
ModelIssues issues) |
void |
AttributeValidator.Iec61850DOAttributesWithSameNameDifferentType.validate(java.util.List<UmlAttribute> attributes,
ModelIssues issues) |
void |
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints.validate(java.util.List<UmlAttribute> attributes,
ModelIssues issues) |
Constructor and Description |
---|
AttributeValidator.Iec61850ConditionLiteralsNeverUsedAsConstraints(java.util.Collection<UmlAttribute> allPresCondLiterals) |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateDescription(java.util.Collection<UmlAttribute> allAbbrLiterals) |
AttributeValidator.Iec61850DOAbbreviationLiteralsDuplicateName(java.util.Collection<UmlAttribute> allAbbrLiterals) |
AttributeValidator.Iec61850DOAbbreviationLiteralsNeverUsedInDOName(java.util.Collection<UmlAttribute> allAbbrLiterals) |
AttributeValidator.Iec61850DOAttributesWithSameNameDifferentType(java.util.Collection<UmlAttribute> allAttributes) |
AttributeValidator(Config cfg,
java.util.Collection<UmlAttribute> allAttributes,
ModelIssues issues) |
ClassValidator.CimClassesNeverUsedAsTypeForAttribute(java.util.List<UmlAttribute> scopedWrtUmlAttributes) |
Copyright 2009-2015 Tatjana (Tanja) Kostic