PropExtractor.java
1019 Bytes
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.scene7.is.util.collections.CollectionUtil
* javax.jcr.Property
* javax.jcr.PropertyType
* javax.jcr.RepositoryException
*/
package com.adobe.cq.dam.s7imaging.impl.jcr.props;
import com.scene7.is.util.collections.CollectionUtil;
import java.util.ArrayList;
import javax.jcr.Property;
import javax.jcr.PropertyType;
import javax.jcr.RepositoryException;
public abstract class PropExtractor<T> {
public final int[] jcrTypes;
public final String expectedTypes;
protected /* varargs */ PropExtractor(int ... jcrTypes) {
this.jcrTypes = jcrTypes;
ArrayList<String> list = new ArrayList<String>(jcrTypes.length);
for (int t : jcrTypes) {
list.add(PropertyType.nameFromValue((int)t));
}
this.expectedTypes = CollectionUtil.mkString(list, (String)"[", (String)" or ", (String)"]");
}
protected abstract T extract(Property var1) throws RepositoryException;
}