Interface INamedModelElement

    • Method Detail

      • getFormalName

        @Nullable
        String getFormalName()
        The formal display name.
        Returns:
        the formal name or null if not defined
      • getEffectiveFormalName

        @Nullable
        default String getEffectiveFormalName()
        The resolved formal display name, which allows an instance to override a definition's name.
        Returns:
        the formal name or null if not defined
      • getDescription

        @Nullable
        MarkupLine getDescription()
        Get the text that describes the basic use of the element.
        Returns:
        a line of markup text or null if not defined
      • getEffectiveDescription

        @Nullable
        default MarkupLine getEffectiveDescription()
        Get the text that describes the basic use of the element, which allows an instance to override a definition's description.
        Returns:
        a line of markup text or null if not defined
      • getProperties

        @NonNull
        Map<QName,​Set<String>> getProperties()
        Get the mapping of property name to values for the model element.
        Returns:
        the mapping
      • hasProperty

        default boolean hasProperty​(@NonNull
                                    QName qname)
        Determine if a property is defined.
        Parameters:
        qname - the qualified name of the property
        Returns:
        true if the property is defined or false otherwise
      • getPropertyValues

        @NonNull
        default Set<StringgetPropertyValues​(@NonNull
                                              QName qname)
        Get the values associated with a given property.
        Parameters:
        qname - the qualified name of the property
        Returns:
        the values or an empty set
      • hasPropertyValue

        default boolean hasPropertyValue​(@NonNull
                                         QName qname,
                                         @NonNull
                                         String value)
        Determine if a given property, with a given qname, has the identified value.
        Parameters:
        qname - the qualified name of the property
        value - the expected property value
        Returns:
        true if the property value is defined or false otherwise
      • getJsonName

        @NonNull
        default String getJsonName()
        Get the name used for the associated property in JSON/YAML.
        Returns:
        the JSON property name
      • getEffectiveName

        @NonNull
        default String getEffectiveName()
        Get the name to use based on the provided names. This method will return the use name provided by getUseName() if the call is not null, and fall back to the name provided by getName() otherwise. This is the model name to use for the for an instance where the instance is referenced.
        Returns:
        the use name if available, or the name if not
        See Also:
        getUseName(), getName()
      • getName

        @NonNull
        String getName()
        Retrieve the name of the model element.
        Returns:
        the name
      • getUseName

        @Nullable
        String getUseName()
        Retrieve the name to use for the model element, instead of the name.
        Returns:
        the use name or null if no use name is defined