I'm trying to call a constructor in a groovy file. I've a constructor like
public class CreditCardDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements creditcard.CreditCardDocument
{
// Constructor
public CreditCardDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
}
When I try to access the constructor by calling ,
// Call the constructor
CreditCardDocument creditCardDocument = new CreditCardDocumentImpl(SchemaType);
It doesn't allow me
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: creditcard.impl.CreditCardDocumentImpl(java.lang.Class)
Any ideas would be greatly appreciated.