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()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()
- Specified by:
asRepoInitStringin classOperation
-
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()
-
-