Enum OpenMetadataExchangeRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OpenMetadataExchangeRule>

    public enum OpenMetadataExchangeRule
    extends java.lang.Enum<OpenMetadataExchangeRule>
    implements java.io.Serializable
    OpenMetadataExchangeRule controls the sending/receiving of metadata instances on the metadata highway.
    • REGISTRATION_ONLY means do not send/receive reference metadata - just perform the minimal registration exchanges.
    • JUST_TYPEDEFS means only send/receive/validate type definitions (TypeDefs).
    • SELECTED_TYPES means that in addition to TypeDefs events, only metadata instances of the types supplied in the related list of TypeDefs (see typesToSend, typesToSave and typesToFederate) should be processed.
    • DESELECTED_TYPES means that in addition to TypeDefs events, only metadata instances NOT of the types supplied in the related list of TypeDefs (see typesToSend, typesToSave and typesToFederate) should be processed.
    • LEARNED_TYPES means that the local repository requests reference copies of metadata based on the requests of the local user community.
    • ALL means send/receive all types of metadata that are supported by the local repository.
    • Method Detail

      • values

        public static OpenMetadataExchangeRule[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OpenMetadataExchangeRule c : OpenMetadataExchangeRule.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OpenMetadataExchangeRule valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOrdinal

        public int getOrdinal()
        Return the code number of this metadata instance replication rule.
        Returns:
        int replication rule code number
      • getName

        public java.lang.String getName()
        Return the name of this metadata instance replication rule.
        Returns:
        String replication rule name
      • getDescription

        public java.lang.String getDescription()
        Return the description of this metadata instance replication rule.
        Returns:
        String replication rule description
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Enum<OpenMetadataExchangeRule>
        Returns:
        print out of variables in a JSON-style