Class DefaultExtension

  • All Implemented Interfaces:
    Extension, HasSemantics

    public class DefaultExtension
    extends java.lang.Object
    implements Extension
    Default implementation of package io.adminshell.aas.v3.model.Extension Single extension of an element. Constraint AASd-077: The name of an extension within HasExtensions needs to be unique.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DefaultExtension.Builder
      This builder class can be used to construct a DefaultExtension bean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      An extension of the element.
      Reference getRefersTo()
      Reference to an element the extension refers to.
      Reference getSemanticId()
      Points to the Expression Semantic of the Submodels The semantic id might refer to an external information source, which explains the formulation of the submodel (for example an PDF if a standard).
      java.lang.String getValue()
      Value of the extension.
      java.lang.String getValueType()
      Type of the value of the extension.
      int hashCode()  
      void setName​(java.lang.String name)
      An extension of the element.
      void setRefersTo​(Reference refersTo)
      Reference to an element the extension refers to.
      void setSemanticId​(Reference semanticId)
      Points to the Expression Semantic of the Submodels The semantic id might refer to an external information source, which explains the formulation of the submodel (for example an PDF if a standard).
      void setValue​(java.lang.String value)
      Value of the extension.
      void setValueType​(java.lang.String valueType)
      Type of the value of the extension.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • value

        protected java.lang.String value
      • valueType

        protected java.lang.String valueType
    • Constructor Detail

      • DefaultExtension

        public DefaultExtension()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getName

        public java.lang.String getName()
        Description copied from interface: Extension
        An extension of the element. More information under https://admin-shell.io/aas/3/0/RC01/Extension/name
        Specified by:
        getName in interface Extension
        Returns:
        Returns the String for the property name.
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: Extension
        An extension of the element. More information under https://admin-shell.io/aas/3/0/RC01/Extension/name
        Specified by:
        setName in interface Extension
        Parameters:
        name - desired value for the property name.
      • getValueType

        public java.lang.String getValueType()
        Description copied from interface: Extension
        Type of the value of the extension. More information under https://admin-shell.io/aas/3/0/RC01/Extension/valueType
        Specified by:
        getValueType in interface Extension
        Returns:
        Returns the String for the property valueType.
      • setValueType

        public void setValueType​(java.lang.String valueType)
        Description copied from interface: Extension
        Type of the value of the extension. More information under https://admin-shell.io/aas/3/0/RC01/Extension/valueType
        Specified by:
        setValueType in interface Extension
        Parameters:
        valueType - desired value for the property valueType.
      • getValue

        public java.lang.String getValue()
        Description copied from interface: Extension
        Value of the extension. More information under https://admin-shell.io/aas/3/0/RC01/Extension/value
        Specified by:
        getValue in interface Extension
        Returns:
        Returns the String for the property value.
      • setValue

        public void setValue​(java.lang.String value)
        Description copied from interface: Extension
        Value of the extension. More information under https://admin-shell.io/aas/3/0/RC01/Extension/value
        Specified by:
        setValue in interface Extension
        Parameters:
        value - desired value for the property value.
      • getRefersTo

        public Reference getRefersTo()
        Description copied from interface: Extension
        Reference to an element the extension refers to. More information under https://admin-shell.io/aas/3/0/RC01/Extension/refersTo
        Specified by:
        getRefersTo in interface Extension
        Returns:
        Returns the Reference for the property refersTo.
      • setRefersTo

        public void setRefersTo​(Reference refersTo)
        Description copied from interface: Extension
        Reference to an element the extension refers to. More information under https://admin-shell.io/aas/3/0/RC01/Extension/refersTo
        Specified by:
        setRefersTo in interface Extension
        Parameters:
        refersTo - desired value for the property refersTo.
      • getSemanticId

        public Reference getSemanticId()
        Description copied from interface: HasSemantics
        Points to the Expression Semantic of the Submodels The semantic id might refer to an external information source, which explains the formulation of the submodel (for example an PDF if a standard). More information under https://admin-shell.io/aas/3/0/RC01/HasSemantics/semanticId
        Specified by:
        getSemanticId in interface HasSemantics
        Returns:
        Returns the Reference for the property semanticId.
      • setSemanticId

        public void setSemanticId​(Reference semanticId)
        Description copied from interface: HasSemantics
        Points to the Expression Semantic of the Submodels The semantic id might refer to an external information source, which explains the formulation of the submodel (for example an PDF if a standard). More information under https://admin-shell.io/aas/3/0/RC01/HasSemantics/semanticId
        Specified by:
        setSemanticId in interface HasSemantics
        Parameters:
        semanticId - desired value for the property semanticId.