public FixedLengthBinding(String beanId, Class<?> beanClass, FixedLengthBindingType bindingType) { AssertArgument.isNotNullAndNotEmpty(beanId, "beanId"); AssertArgument.isNotNull(beanClass, "beanClass"); this.beanId = beanId; this.beanClass = beanClass; this.bindingType = bindingType; }
/** * Public constructor. * * @param execContext The Smooks Container Request that the parser is being instantiated on behalf of. * @param saxDriverConfig SAX Parser configuration. See <a href="#parserconfig">.cdrl Configuration</a>. */ public AbstractParser(ExecutionContext execContext, SmooksResourceConfiguration saxDriverConfig) { AssertArgument.isNotNull(execContext, "execContext"); this.execContext = execContext; this.saxDriverConfig = saxDriverConfig; }
public DirectDataSource setUrl(String url) { AssertArgument.isNotNullAndNotEmpty(url, "url"); this.url = url; return this; }
/** * Public constructor. * @param owner The owning {@link SAXVisitor} instance. * @param encodeSpecialChars Encode special XML characters. */ public SAXToXMLWriter(SAXVisitor owner, boolean encodeSpecialChars) { AssertArgument.isNotNull(owner, "owner"); this.owner = owner; this.encodeSpecialChars = encodeSpecialChars; }
public UNEdifactReaderConfigurator setTargetProfile(String targetProfile) { AssertArgument.isNotNullAndNotEmpty(targetProfile, "targetProfile"); this.targetProfile = targetProfile; return this; }
public FixedLengthBinding(String beanId, Class<?> beanClass, FixedLengthBindingType bindingType) { AssertArgument.isNotNullAndNotEmpty(beanId, "beanId"); AssertArgument.isNotNull(beanClass, "beanClass"); this.beanId = beanId; this.beanClass = beanClass; this.bindingType = bindingType; }
/** * Public constructor. * @param bean The bean instance. */ public BeanMetadata(Object bean) { AssertArgument.isNotNull(bean, "bean"); this.bean = bean; }
/** * The profile on which this reader is used * * @param targetProfile * @return This configurator (for chain calls) */ public YamlReaderConfigurator setTargetProfile(String targetProfile) { AssertArgument.isNotNullAndNotEmpty(targetProfile, "targetProfile"); this.targetProfile = targetProfile; return this; }
public FixedLengthBinding(String beanId, Class<?> beanClass, FixedLengthBindingType bindingType) { AssertArgument.isNotNullAndNotEmpty(beanId, "beanId"); AssertArgument.isNotNull(beanClass, "beanClass"); this.beanId = beanId; this.beanClass = beanClass; this.bindingType = bindingType; }
/** * Set the correlationId header name. * * @return This router instance. */ public BeanRouter setCorrelationIdName(String correlationIdName) { AssertArgument.isNotNullAndNotEmpty(correlationIdName, "correlationIdName"); this.correlationIdName = correlationIdName; return this; }
public Binding(String beanId, Class beanClass, BindingType bindingType) { AssertArgument.isNotNullAndNotEmpty(beanId, "beanId"); AssertArgument.isNotNull(beanClass, "beanClass"); this.beanId = beanId; this.beanClass = beanClass; this.bindingType = bindingType; }
public ArchiveClassLoader(ClassLoader parent, Archive archive) { super(parent); AssertArgument.isNotNull(archive, "archive"); this.archive = archive; }
public CSVReaderConfigurator setRecordElementName(String csvRecordElementName) { AssertArgument.isNotNullAndNotEmpty(csvRecordElementName, "recordElementName"); this.recordElementName = csvRecordElementName; return this; }
public Descriptor(List<Properties> descriptors, EntityResolver schemaResolver, EntityResolver bindingResolver, ClassLoader classloader) throws SAXException, IOException { AssertArgument.isNotNullAndNotEmpty(descriptors, "descriptors"); AssertArgument.isNotNull(bindingResolver, "bindingResolver"); AssertArgument.isNotNull(classloader, "classloader"); this.classloader = classloader; intialize(descriptors, schemaResolver, bindingResolver); }
/** * @param connection */ public ExternalTransactionManager(Connection connection, boolean autoCommit, boolean isSetAutoCommitAllowed) { AssertArgument.isNotNull(connection, "connection"); this.connection = connection; this.autoCommit = autoCommit; this.isSetAutoCommitAllowed = isSetAutoCommitAllowed; }
public FixedLengthReaderConfigurator setTruncatedAttributeName(String truncatedAttributeName) { AssertArgument.isNotNullAndNotEmpty(truncatedAttributeName, "truncatedAttributeName"); this.truncatedAttributeName = truncatedAttributeName; return this; }
/** * Get a boolean attribute from the supplied element. * @param element The element. * @param attribName The attribute name. * @return True if the attribute value is "true" (case insensitive), otherwise false. */ public static boolean getBooleanAttrib(Element element, String attribName) { AssertArgument.isNotNull(element, "element"); AssertArgument.isNotNullAndNotEmpty(attribName, "attribName"); String attribVal = element.getAttribute(attribName); return (attribVal != null?attribVal.equalsIgnoreCase("true"):false); }
public DirectDataSource setUsername(String username) { AssertArgument.isNotNull(username, "username"); this.username = username; return this; }
public DirectDataSource setUrl(String url) { AssertArgument.isNotNullAndNotEmpty(url, "url"); this.url = url; return this; }