be.selckin.ws.util.java2php.php.PhpClass Maven / Gradle / Ivy
package be.selckin.ws.util.java2php.php;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import javax.xml.namespace.QName;
import java.util.List;
public class PhpClass extends PhpType {
private final List properties;
public PhpClass(QName qName, String namespace, String name, List properties) {
super(qName, namespace, name);
this.properties = properties;
}
public List getProperties() {
return properties;
}
public List getRequiredProperties() {
return Lists.newArrayList(Iterables.filter(properties, new Predicate() {
@Override
public boolean apply(PhpProperty input) {
return input.isRequired();
}
}));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy