Class AttributeImpl<T>

    • Method Detail

      • convertXmlValueToModelValue

        protected abstract T convertXmlValueToModelValue​(java.lang.String rawValue)
        to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model
        Returns:
        the converted value
      • convertModelValueToXmlValue

        protected abstract java.lang.String convertModelValueToXmlValue​(T modelValue)
        to be implemented by subclasses: converts the raw (String) value of the attribute to the type required by the model
        Returns:
        the converted value
      • setValue

        public void setValue​(ModelElementInstance modelElement,
                             T value)
        sets the value of the attribute. the value of the attribute.
        Specified by:
        setValue in interface Attribute<T>
        value - the value of the attribute.
      • setValue

        public void setValue​(ModelElementInstance modelElement,
                             T value,
                             boolean withReferenceUpdate)
        Description copied from interface: Attribute
        sets the value of the attribute.
        Specified by:
        setValue in interface Attribute<T>
        value - the value of the attribute.
        withReferenceUpdate - true to update id references in other elements, false otherwise
      • updateIncomingReferences

        public void updateIncomingReferences​(ModelElementInstance modelElement,
                                             java.lang.String newIdentifier,
                                             java.lang.String oldIdentifier)
      • setDefaultValue

        public void setDefaultValue​(T defaultValue)
      • setRequired

        public void setRequired​(boolean required)
      • setNamespaceUri

        public void setNamespaceUri​(java.lang.String namespaceUri)
        Parameters:
        namespaceUri - the namespaceUri to set
      • getNamespaceUri

        public java.lang.String getNamespaceUri()
        Specified by:
        getNamespaceUri in interface Attribute<T>
        Returns:
        the namespaceUri
      • setId

        public void setId()
        Indicate whether this attribute is an Id attribute
      • getAttributeName

        public java.lang.String getAttributeName()
        Specified by:
        getAttributeName in interface Attribute<T>
        Returns:
        the attributeName
      • setAttributeName

        public void setAttributeName​(java.lang.String attributeName)
        Parameters:
        attributeName - the attributeName to set
      • unlinkReference

        public void unlinkReference​(ModelElementInstance modelElement,
                                    java.lang.Object referenceIdentifier)
      • registerOutgoingReference

        public void registerOutgoingReference​(Reference<?> ref)
      • registerIncoming

        public void registerIncoming​(Reference<?> ref)