Class RosettaAttributeExtensions
java.lang.Object
com.regnosys.rosetta.generator.util.RosettaAttributeExtensions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ExpandedSynonymprotected static ExpandedSynonymprotected static ExpandedSynonymprotected static ExpandedSynonymprotected static ExpandedSynonymstatic booleancardinalityIsListValue(ExpandedAttribute attribute) static booleancardinalityIsSingleValue(ExpandedAttribute attribute) static List<ExpandedAttribute>expandedAttributesPlus(Data data) static ExpandedAttributestatic List<ExpandedAttribute>getExpandedAttributes(RosettaEnumeration rosettaEnum) static List<ExpandedAttribute>getExpandedAttributes(Data data) Note that these methods will add a "meta" attribute if the data type has annotationsstatic booleanstatic List<ExpandedSynonymValue>metaSynValue(RosettaSynonymValueBase[] values, String meta) static ExpandedAttributetoExpandedAttribute(Attribute attr) static ExpandedSynonymstatic ExpandedTypetoExpandedType(RosettaType type) static List<ExpandedSynonym>toRosettaExpandedSynonym(Attribute attr, int index) static List<ExpandedSynonym>toRosettaExpandedSynonym(List<RosettaSynonymSource> sources, List<RosettaExternalSynonym> externalSynonyms, int index) static ExpandedSynonymtoRosettaExpandedSynonym(org.eclipse.emf.ecore.EObject syn) static List<ExpandedSynonym>toRosettaExpandedSynonyms(List<RosettaSynonym> synonyms, int meta)
-
Field Details
-
METAFIELDS_CLASS_NAME
- See Also:
-
META_AND_TEMPLATE_FIELDS_CLASS_NAME
- See Also:
-
-
Constructor Details
-
RosettaAttributeExtensions
public RosettaAttributeExtensions()
-
-
Method Details
-
cardinalityIsSingleValue
-
cardinalityIsListValue
-
getExpandedAttributes
Note that these methods will add a "meta" attribute if the data type has annotations -
expandedAttributesPlus
-
getExpandedAttributes
-
expandedEnumAttribute
-
toExpandedSynonym
-
isList
-
toRosettaExpandedSynonym
-
toRosettaExpandedSynonym
public static List<ExpandedSynonym> toRosettaExpandedSynonym(List<RosettaSynonymSource> sources, List<RosettaExternalSynonym> externalSynonyms, int index) -
toExpandedAttribute
-
toExpandedType
-
toRosettaExpandedSynonyms
public static List<ExpandedSynonym> toRosettaExpandedSynonyms(List<RosettaSynonym> synonyms, int meta) -
metaSynValue
public static List<ExpandedSynonymValue> metaSynValue(RosettaSynonymValueBase[] values, String meta) -
_toRosettaExpandedSynonym
-
_toRosettaExpandedSynonym
-
_toRosettaExpandedSynonym
-
_toRosettaExpandedSynonym
-
_toRosettaExpandedSynonym
-
toRosettaExpandedSynonym
-