com.ibm.ia.common

Interface BaseFactory

    • Method Detail

      • createConcept

        <T> T createConcept(java.lang.Class<T> clazz)
                        throws java.lang.IllegalArgumentException
        Creates concept instance
        Throws:
        java.lang.IllegalArgumentException
        Parameters:
        clazz - concept type
        Returns:
        created instance
      • 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
        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
        Parameters:
        t - entity instance for this relationship
        Returns:
        created instance
      • getConceptFactory

        <T> T getConceptFactory(java.lang.Class<T> conceptFactoryClass)

© Copyright IBM 2017