Class RegisterNodetypes
- java.lang.Object
-
- org.apache.sling.repoinit.parser.operations.Operation
-
- org.apache.sling.repoinit.parser.operations.RegisterNodetypes
-
@ProviderType public class RegisterNodetypes extends Operation
An embedded block of text
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCND_OPTIONAL_PREFIXOptional prefix used at the beginning of CND lines, to avoid conflicts with Sling provisioning model parser.
-
Constructor Summary
Constructors Constructor Description RegisterNodetypes(java.lang.String cndStatements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(OperationVisitor v)@NotNull java.lang.StringasRepoInitString()Converts this operation instance to a RepoInit string representation including the current operation parameters.static @NotNull java.util.List<java.lang.String>generateRepoInitLines(@NotNull java.io.BufferedReader rawLines)java.lang.StringgetCndStatements()java.lang.StringtoString()-
Methods inherited from class org.apache.sling.repoinit.parser.operations.Operation
cleanupQuotedString
-
-
-
-
Field Detail
-
CND_OPTIONAL_PREFIX
public static final java.lang.String CND_OPTIONAL_PREFIX
Optional prefix used at the beginning of CND lines, to avoid conflicts with Sling provisioning model parser. If present at the beginning of CND lines, this string is removed.- See Also:
- Constant Field Values
-
-
Method Detail
-
asRepoInitString
@NotNull public @NotNull java.lang.String asRepoInitString()
Description copied from class:OperationConverts 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:
asRepoInitStringin classOperation- Returns:
- the repoinit string for the operation
-
generateRepoInitLines
@NotNull public static @NotNull java.util.List<java.lang.String> generateRepoInitLines(@NotNull @NotNull java.io.BufferedReader rawLines) throws java.io.IOException- Throws:
java.io.IOException
-
accept
public void accept(OperationVisitor v)
-
getCndStatements
public java.lang.String getCndStatements()
-
-