public class RegexBasedPathToMetadataInferrer extends Object implements PathToMetadataInferrer
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_MODULE |
static String |
GROUP_NAME |
static String |
GROUP_RELATIVE_PATH |
Constructor and Description |
---|
RegexBasedPathToMetadataInferrer(Pattern pathPattern) |
Modifier and Type | Method and Description |
---|---|
protected String |
fallbackDefinitionName(Matcher matcher,
String path) |
protected Matcher |
matcherFor(String relativePath) |
protected String |
moduleName(Matcher matcher,
String path) |
DefinitionMetadataBuilder |
populateFrom(DefinitionMetadataBuilder metadataBuilder,
info.magnolia.resourceloader.Resource resource) |
protected String |
relativeLocation(Matcher matcher,
String path) |
public static final String GROUP_MODULE
public static final String GROUP_NAME
public static final String GROUP_RELATIVE_PATH
public RegexBasedPathToMetadataInferrer(Pattern pathPattern)
public DefinitionMetadataBuilder populateFrom(DefinitionMetadataBuilder metadataBuilder, info.magnolia.resourceloader.Resource resource)
populateFrom
in interface PathToMetadataInferrer
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.