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 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(String cndStatements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(OperationVisitor v)@NotNull StringasRepoInitString()Converts this operation instance to a RepoInit string representation including the current operation parameters.static @NotNull List<String>generateRepoInitLines(@NotNull BufferedReader rawLines)StringgetCndStatements()StringtoString()-
Methods inherited from class org.apache.sling.repoinit.parser.operations.Operation
cleanupQuotedString
-
-
-
-
Field Detail
-
CND_OPTIONAL_PREFIX
public static final 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
-
-
Constructor Detail
-
RegisterNodetypes
public RegisterNodetypes(String cndStatements)
-
-
Method Detail
-
asRepoInitString
@NotNull public @NotNull 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 List<String> generateRepoInitLines(@NotNull @NotNull BufferedReader rawLines) throws IOException
- Throws:
IOException
-
accept
public void accept(OperationVisitor v)
-
getCndStatements
public String getCndStatements()
-
-