Enum ModelProcessingPhase

    • Enum Constant Detail

      • SOURCE_PRE_LINKAGE

        public static final ModelProcessingPhase SOURCE_PRE_LINKAGE
        Preliminary cross-source relationship resolution phase which collects available module names and module namespaces. It is necessary in order to correct resolution of unknown statements used in linkage phase (e.g. semantic version of yang modules).
      • SOURCE_LINKAGE

        public static final ModelProcessingPhase SOURCE_LINKAGE
        Cross-source relationship resolution phase.

        In this phase of processing only statements which affects cross-source relationship (e.g. imports / includes) are processed.

        At end of this phase all source related contexts should be bind to their imports and includes to allow visibility of custom defined statements in subsequent phases.

    • Method Detail

      • values

        public static ModelProcessingPhase[] 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 (ModelProcessingPhase c : ModelProcessingPhase.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ModelProcessingPhase valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null