com.ibm.ia.common

Interface Extension

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      <T extends com.ibm.ia.model.Entity> 
      com.ibm.ia.model.Relationship<T>
      createRelationship(java.lang.Class<T> entity, java.lang.String key)
      Creates Relationship instance.
      <T extends com.ibm.ia.model.Entity> 
      com.ibm.ia.model.Relationship<T>
      createRelationship(T t)
      Creates Relationship instance.
      <T> T getConceptFactory(java.lang.Class<T> conceptFactoryClass)
      Returns an instance of the concept factory.
      ModelSerializer getModelSerializer()
      Returns the model serializer instance.
      SolutionDescriptor getSolutionDescriptor()
      Returns solution-specific information.
      java.util.Map<java.lang.String,java.lang.String> getSolutionProperties(java.util.Collection<java.lang.String> propertyNames)
      Reads the values of multiple solution properties for the solution to.
      java.lang.String getSolutionProperty(java.lang.String propertyName)
      Retrieves the value of a solution property for the solution.
      java.lang.String getSolutionProperty(java.lang.String propertyName, java.lang.String defaultValue)
      Retrieves the value of a solution property for the solution.
    • Method Detail

      • getSolutionDescriptor

        SolutionDescriptor getSolutionDescriptor()
        Returns solution-specific information.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Returns:
        A SolutionDescriptor containing solution details.
      • getSolutionProperty

        java.lang.String getSolutionProperty(java.lang.String propertyName)
        Retrieves the value of a solution property for the solution. Returns null if the property is undefined.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Parameters:
        propertyName - the name of the property.
        Returns:
        The value of the property.
      • getSolutionProperty

        java.lang.String getSolutionProperty(java.lang.String propertyName,
                                           java.lang.String defaultValue)
        Retrieves the value of a solution property for the solution. Returns the default value if the property is undefined.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Parameters:
        propertyName - the name of the property.
        defaultValue - the value to use if the property is undefined.
        Returns:
        The value of the property.
      • getSolutionProperties

        java.util.Map<java.lang.String,java.lang.String> getSolutionProperties(java.util.Collection<java.lang.String> propertyNames)
        Reads the values of multiple solution properties for the solution to. If a property is undefined, it is not included in the result.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Parameters:
        propertyNames - The names of the properties to retrieve.
        Returns:
        The name and values of the requested properties.
      • getModelSerializer

        ModelSerializer getModelSerializer()
        Returns the model serializer instance.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Returns:
      • getConceptFactory

        <T> T getConceptFactory(java.lang.Class<T> conceptFactoryClass)
        Returns an instance of the concept factory.
        Throws:
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Returns:
      • createRelationship

        <T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(java.lang.Class<T> entity,
                                                                                              java.lang.String key)
                                                                                            throws java.lang.IllegalArgumentException
        Creates Relationship instance.
        Throws:
        java.lang.IllegalArgumentException
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Parameters:
        entity - type of entity in this relationship
        key - entity Id for this relationship
        Returns:
        created instance
      • createRelationship

        <T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(T t)
                                                                                            throws java.lang.IllegalArgumentException
        Creates Relationship instance.
        Throws:
        java.lang.IllegalArgumentException
        java.lang.UnsupportedOperationException - if called outside a valid execution context.
        Parameters:
        t - entity instance for this relationship
        Returns:
        created instance

© Copyright IBM 2017