public ChildResourceImpl()

in src/main/java/org/apache/sling/validation/impl/model/ChildResourceImpl.java [41:55]


    public ChildResourceImpl(@NotNull String name, String nameRegex, boolean isRequired, @NotNull List<ResourceProperty> properties, @NotNull List<ChildResource> children) {
        if (nameRegex != null) {
            try {
                this.namePattern = Pattern.compile(nameRegex);
            } catch (PatternSyntaxException e) {
                throw new IllegalArgumentException("Invalid regex given", e);
            }
        } else {
            this.namePattern = null;
        }
        this.name = name;
        this.isRequired = isRequired;
        this.properties = properties;
        this.children = children;
    }