Class EnhancedResource<EnhancementT>

java.lang.Object
aas_core.aas3_0.enhancing.Enhanced<EnhancementT>
aas_core.aas3_0.enhancing.EnhancedResource<EnhancementT>
All Implemented Interfaces:
IClass, IResource

public class EnhancedResource<EnhancementT> extends Enhanced<EnhancementT> implements IResource
  • Constructor Details

  • Method Details

    • getPath

      public String getPath()
      Description copied from interface: IResource
      Path and name of the resource (with file extension).

      The path can be absolute or relative.

      Specified by:
      getPath in interface IResource
    • setPath

      public void setPath(String path)
      Specified by:
      setPath in interface IResource
    • getContentType

      public Optional<String> getContentType()
      Description copied from interface: IResource
      Content type of the content of the file.

      The content type states which file extensions the file can have.

      Specified by:
      getContentType in interface IResource
    • setContentType

      public void setContentType(String contentType)
      Specified by:
      setContentType in interface IResource
    • descendOnce

      public Iterable<IClass> descendOnce()
      Description copied from interface: IClass
      Iterate over all the class instances referenced from this instance without further recursion.
      Specified by:
      descendOnce in interface IClass
    • descend

      public Iterable<IClass> descend()
      Description copied from interface: IClass
      Iterate recursively over all the class instances referenced from this instance.
      Specified by:
      descend in interface IClass
    • accept

      public void accept(IVisitor visitor)
      Description copied from interface: IClass
      Accept the visitor to visit this instance for double dispatch.
      Specified by:
      accept in interface IClass
    • accept

      public <ContextT> void accept(IVisitorWithContext<ContextT> visitor, ContextT context)
      Description copied from interface: IClass
      Accept the visitor to visit this instance for double dispatch with the context.
      Specified by:
      accept in interface IClass
    • transform

      public <T> T transform(ITransformer<T> transformer)
      Description copied from interface: IClass
      Accept the transformer to transform this instance for double dispatch.
      Specified by:
      transform in interface IClass
    • transform

      public <ContextT, T> T transform(ITransformerWithContext<ContextT,T> transformer, ContextT context)
      Description copied from interface: IClass
      Accept the transformer to visit this instance for double dispatch with the context.
      Specified by:
      transform in interface IClass