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

org.smyld.util.alias.AliasSource Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package org.smyld.util.alias;

import java.util.HashMap;

import org.smyld.SMYLDObject;


public class AliasSource extends SMYLDObject  {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	HashMap classRef;
	String id;
	int type;
	

	public AliasSource() {
	}

	public AliasSource(int alType) {
		
		type = alType;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void addClass(AliasClassSettings classSettings) {
		if (classRef == null)
			classRef = new HashMap();
		classRef.put(classSettings.getId(), classSettings);
	}

	public void addClass(String classID) {
		if (classRef == null)
			classRef = new HashMap();
		classRef.put(classID, null);
	}

	public boolean containsTarget(String targetName) {
		if (classRef != null)
			return classRef.containsKey(targetName);
		return false;
	}

	public boolean containsTargets() {
		return ((classRef != null) && (classRef.size() > 0));
	}

	public int getType() {
		return type;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy