Class ChildOptionI

  • All Implemented Interfaces:
    Ice.Object, java.io.Serializable, java.lang.Cloneable

    public class ChildOptionI
    extends ChildOption
    Child options adjust how child objects are treated according to their type and, if annotations, namespace, overriding the default graph traversal policy for orphans.
    Since:
    5.1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ChildOptionI

        public ChildOptionI​(ChildOptionI original)
        Construct a new child option instance identical to that given. If the original was initialized, this one is too.
        Parameters:
        original - a child option instance
    • Method Detail

      • init

        public void init()
        Initialize this child option instance. An option takes effect according to the ChildOption field values set when this method was last called.
      • isIncludeType

        public java.lang.Boolean isIncludeType​(java.lang.Class<? extends ome.model.IObject> objectClass)
        Test if this child option adjusts graph traversal policy for the given child object class. Requires init() to have been called previously.
        Parameters:
        objectClass - a child object class
        Returns:
        true if such children should be included in the operation, false if such children should not be included in the operation, or null if this child option does not affect the treatment of such children
      • isTargetNamespace

        public boolean isTargetNamespace​(java.lang.String namespace)
        Test if this child option adjusts graph traversal policy for child objects that are annotations in the given namespace. Requires init() to have been called previously.
        Parameters:
        namespace - an annotation namespace
        Returns:
        if child objects that are annotations in this namespace are affected by this child option
      • castChildOptions

        public static java.util.List<ChildOptionI> castChildOptions​(java.util.Collection<ChildOption> childOptions)
        Cast ChildOption[] to ChildOptionI[].
        Parameters:
        childOptions - an array of ChildOption which may all be casted to ChildOptionI, may be null
        Returns:
        an array of ChildOptionI, may be null