All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.vsspt.xjc.set.PluginImpl Maven / Gradle / Ivy

Go to download

Generates toString, setter, equals and hashCode methods on JAXB generated classes.

The newest version!
package com.github.vsspt.xjc.set;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.github.vsspt.xjc.AbstractReplacePluginImpl;

public class PluginImpl extends AbstractReplacePluginImpl {

	private static final String OPTION_NAME = "XvsHashset";

	private static final String USAGE = "XvsHashset :  replaces List by java.util.HashSet";

	@Override
	public String getOptionName() {
		return OPTION_NAME;
	}

	@Override
	public String getUsage() {
		return USAGE;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected  Class getInterfaceClass() {
		return (Class) Set.class;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected  Class getImplementationClass() {
		return (Class) HashSet.class;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected  Class getReplaceableClass() {
		return (Class) List.class;
	}

	@Override
	protected boolean checkNull() {
		return false;
	}

	@Override
	protected boolean assignOnFieldDeclaration() {
		return true;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy