public class ResourcePropertyImpl extends Object implements org.apache.sling.validation.model.ResourceProperty
| Modifier | Constructor and Description |
|---|---|
protected |
ResourcePropertyImpl(String name,
String nameRegex,
boolean isMultiple,
boolean isRequired,
List<org.apache.sling.validation.model.ValidatorInvocation> validators)
Is only supposed to be used from
ResourcePropertyBuilder. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName() |
Pattern |
getNamePattern() |
List<org.apache.sling.validation.model.ValidatorInvocation> |
getValidatorInvocations() |
int |
hashCode() |
boolean |
isMultiple() |
boolean |
isRequired() |
String |
toString() |
protected ResourcePropertyImpl(@Nonnull String name, String nameRegex, boolean isMultiple, boolean isRequired, @Nonnull List<org.apache.sling.validation.model.ValidatorInvocation> validators) throws IllegalArgumentException
ResourcePropertyBuilder.name - nameRegex - isMultiple - isRequired - validators - IllegalArgumentExceptionpublic String getName()
getName in interface org.apache.sling.validation.model.ResourcePropertypublic Pattern getNamePattern()
getNamePattern in interface org.apache.sling.validation.model.ResourcePropertypublic boolean isMultiple()
isMultiple in interface org.apache.sling.validation.model.ResourcePropertypublic boolean isRequired()
isRequired in interface org.apache.sling.validation.model.ResourceProperty@Nonnull public List<org.apache.sling.validation.model.ValidatorInvocation> getValidatorInvocations()
getValidatorInvocations in interface org.apache.sling.validation.model.ResourcePropertyCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.