Class FakeProperty

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.DataElement, de.iip_ecosphere.platform.support.aas.Element, de.iip_ecosphere.platform.support.aas.HasDataSpecification, de.iip_ecosphere.platform.support.aas.HasKind, de.iip_ecosphere.platform.support.aas.HasSemantics, de.iip_ecosphere.platform.support.aas.Property, de.iip_ecosphere.platform.support.aas.Qualifiable, de.iip_ecosphere.platform.support.aas.Referable, de.iip_ecosphere.platform.support.aas.SubmodelElement

    public class FakeProperty
    extends FakeElement
    implements de.iip_ecosphere.platform.support.aas.Property
    Implements a fake property for testing.
    Author:
    Holger Eichelberger, SSE
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  FakeProperty.FakePropertyBuilder
      A fake property builder.
      • Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.DataElement

        de.iip_ecosphere.platform.support.aas.DataElement.DataElementBuilder<T extends de.iip_ecosphere.platform.support.aas.DataElement>
      • Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.Property

        de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String semanticId  
      private de.iip_ecosphere.platform.support.aas.Type type  
      private java.lang.Object value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FakeProperty​(java.lang.String idShort)
      Creates the instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)  
      java.lang.String getSemanticId​(boolean stripPrefix)  
      java.lang.Object getValue()  
      void setValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.iip_ecosphere.platform.support.aas.Element

        getIdShort, update
      • Methods inherited from interface de.iip_ecosphere.platform.support.aas.Property

        getSemanticId
    • Field Detail

      • value

        private java.lang.Object value
      • type

        private de.iip_ecosphere.platform.support.aas.Type type
      • semanticId

        private java.lang.String semanticId
    • Constructor Detail

      • FakeProperty

        protected FakeProperty​(java.lang.String idShort)
        Creates the instance.
        Parameters:
        idShort - the short id.
    • Method Detail

      • accept

        public void accept​(de.iip_ecosphere.platform.support.aas.AasVisitor visitor)
        Specified by:
        accept in interface de.iip_ecosphere.platform.support.aas.Element
      • getValue

        public java.lang.Object getValue()
                                  throws java.util.concurrent.ExecutionException
        Specified by:
        getValue in interface de.iip_ecosphere.platform.support.aas.Property
        Throws:
        java.util.concurrent.ExecutionException
      • setValue

        public void setValue​(java.lang.Object value)
                      throws java.util.concurrent.ExecutionException
        Specified by:
        setValue in interface de.iip_ecosphere.platform.support.aas.Property
        Throws:
        java.util.concurrent.ExecutionException
      • getSemanticId

        public java.lang.String getSemanticId​(boolean stripPrefix)
        Specified by:
        getSemanticId in interface de.iip_ecosphere.platform.support.aas.Property