Class CreatePath

    • Field Summary

      • Fields inherited from class org.apache.sling.repoinit.parser.operations.Operation

        DQUOTE
    • Constructor Summary

      Constructors 
      Constructor Description
      CreatePath​(java.lang.String defaultPrimaryType)  
    • Constructor Detail

      • CreatePath

        public CreatePath​(java.lang.String defaultPrimaryType)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Operation
      • asRepoInitString

        @NotNull
        public @NotNull java.lang.String asRepoInitString()
        Description copied from class: Operation
        Converts this operation instance to a RepoInit string representation including the current operation parameters. The representation must be parsable back into an equivalent operation and must end with a OS-compatible line separator.
        Specified by:
        asRepoInitString in class Operation
        Returns:
        the repoinit string for the operation
      • addSegment

        public void addSegment​(java.lang.String path,
                               java.lang.String primaryType)
      • addSegment

        public void addSegment​(java.lang.String path,
                               java.lang.String primaryType,
                               java.util.List<java.lang.String> mixins)