Class MetaModelBaseAttributes

java.lang.Object
org.eclipse.esmf.metamodel.loader.MetaModelBaseAttributes

public class MetaModelBaseAttributes extends Object
Wrapper class for the attributes all Aspect Meta Model elements have.
  • Constructor Details

    • MetaModelBaseAttributes

      public MetaModelBaseAttributes(org.eclipse.esmf.samm.KnownVersion metaModelVersion, org.eclipse.esmf.aspectmodel.urn.AspectModelUrn urn, String name, Set<LangString> preferredNames, Set<LangString> descriptions, List<String> see)
    • MetaModelBaseAttributes

      public MetaModelBaseAttributes(org.eclipse.esmf.samm.KnownVersion metaModelVersion, org.eclipse.esmf.aspectmodel.urn.AspectModelUrn urn, String name, Set<LangString> preferredNames, Set<LangString> descriptions, List<String> see, boolean hasSyntheticName)
  • Method Details

    • getMetaModelVersion

      public org.eclipse.esmf.samm.KnownVersion getMetaModelVersion()
    • getUrn

      public Optional<org.eclipse.esmf.aspectmodel.urn.AspectModelUrn> getUrn()
    • getName

      public String getName()
    • getPreferredNames

      public Set<LangString> getPreferredNames()
    • getDescriptions

      public Set<LangString> getDescriptions()
    • getSee

      public List<String> getSee()
    • hasSyntheticName

      public boolean hasSyntheticName()
    • builderFor

      public static MetaModelBaseAttributes.Builder builderFor(String name)
      Creates a builder for MetaModelBaseAttributes for the given meta model element name.
      Parameters:
      name - the meta model element name
      Returns:
      the builder instance
    • from

      public static MetaModelBaseAttributes from(org.eclipse.esmf.samm.KnownVersion metaModelVersion, org.eclipse.esmf.aspectmodel.urn.AspectModelUrn urn, String name)
      Creates an instance of MetaModelBaseAttributes from a meta model version, an URN and a name.
      Parameters:
      metaModelVersion - the used meta model version
      urn - the meta model element URN
      name - the meta model element name
      Returns:
      the newly created instance
    • from

      public static MetaModelBaseAttributes from(org.eclipse.esmf.samm.KnownVersion metaModelVersion, org.eclipse.esmf.aspectmodel.urn.AspectModelUrn urn, String name, String preferredName)
      Creates an instance of MetaModelBaseAttributes from a meta model version, an URN, a name and a preferredName for Locale.ENGLISH.
      Parameters:
      metaModelVersion - the used meta model version
      urn - the meta model element URN
      name - the meta model element name
      Returns:
      the newly created instance
    • fromModelElement

      public static MetaModelBaseAttributes fromModelElement(org.eclipse.esmf.samm.KnownVersion metaModelVersion, org.apache.jena.rdf.model.Resource modelElement, org.apache.jena.rdf.model.Model model, SAMM samm)
      Creates an instance of MetaModelBaseAttributes for a specific Meta Model element.
      Parameters:
      metaModelVersion - the used meta model version
      modelElement - the Aspect model element to be processed.
      model - the RDF Model representing the entire Aspect Meta Model.
      samm - the Aspect Meta Model vocabulary
      Returns:
      the newly created instance