Class OptionalRelationDefinition<C extends ConfigurationClient,​S extends Configuration>

  • Type Parameters:
    C - The type of client managed object configuration that this relation definition refers to.
    S - The type of server managed object configuration that this relation definition refers to.

    public final class OptionalRelationDefinition<C extends ConfigurationClient,​S extends Configuration>
    extends RelationDefinition<C,​S>
    A managed object composite relationship definition which represents a composition of an optional single managed object (i.e. the referenced managed object may or may not be present).
    • Method Detail

      • accept

        public <R,​P> R accept​(RelationDefinitionVisitor<R,​P> v,
                                    P p)
        Description copied from class: RelationDefinition
        Apply a visitor to this relation definition.
        Specified by:
        accept in class RelationDefinition<C extends ConfigurationClient,​S extends Configuration>
        Type Parameters:
        R - The return type of the visitor's methods.
        P - The type of the additional parameters to the visitor's methods.
        Parameters:
        v - The relation definition visitor.
        p - Optional additional visitor parameter.
        Returns:
        Returns a result as specified by the visitor.
      • getDefaultManagedObject

        public DefaultManagedObject<? extends C,​? extends S> getDefaultManagedObject()
        Gets the optional default managed object associated with this optional relation definition.
        Returns:
        Returns the default managed object or null if there is no default managed object defined for this relation definition.