FileDocCategorySizeDatePackage
RoleMap.javaAPI DocGlassfish v2 API9610Fri May 04 22:34:40 BST 2007com.sun.enterprise.tools.common.dd.connector

RoleMap

public class RoleMap extends com.sun.enterprise.tools.common.dd.SunBaseBean
This generated bean class RoleMap matches the schema element role-map Generated on Thu Jul 31 18:16:39 PDT 2003

Fields Summary
static Vector
comparators
public static final String
MAPID
public static final String
DESCRIPTION
public static final String
MAP_ELEMENT
Constructors Summary
public RoleMap()

	// NOI18N

	  
		this(Common.USE_DEFAULT_VALUES);
	
public RoleMap(int options)

		super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
		// Properties (see root bean comments for the bean graph)
		this.createProperty("description", 	// NOI18N
			DESCRIPTION, 
			Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 
			String.class);
		this.createProperty("map-element", 	// NOI18N
			MAP_ELEMENT, 
			Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 
			MapElement.class);
		this.initialize(options);
	
Methods Summary
public static voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddMapElement(com.sun.enterprise.tools.common.dd.connector.MapElement value)

		return this.addValue(MAP_ELEMENT, value);
	
public voiddump(java.lang.StringBuffer str, java.lang.String indent)

		String s;
		Object o;
		org.netbeans.modules.schema2beans.BaseBean n;
		str.append(indent);
		str.append("Description");	// NOI18N
		str.append(indent+"\t");	// NOI18N
		str.append("<");	// NOI18N
		s = this.getDescription();
		str.append((s==null?"null":s.trim()));	// NOI18N
		str.append(">\n");	// NOI18N
		this.dumpAttributes(DESCRIPTION, 0, str, indent);

		str.append(indent);
		str.append("MapElement["+this.sizeMapElement()+"]");	// NOI18N
		for(int i=0; i<this.sizeMapElement(); i++)
		{
			str.append(indent+"\t");
			str.append("#"+i+":");
			n = (org.netbeans.modules.schema2beans.BaseBean) this.getMapElement(i);
			if (n != null)
				n.dump(str, indent + "\t");	// NOI18N
			else
				str.append(indent+"\tnull");	// NOI18N
			this.dumpAttributes(MAP_ELEMENT, i, str, indent);
		}

	
public java.lang.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("RoleMap\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public java.lang.StringgetDescription()

		return (String)this.getValue(DESCRIPTION);
	
public com.sun.enterprise.tools.common.dd.connector.MapElement[]getMapElement()

		return (MapElement[])this.getValues(MAP_ELEMENT);
	
public com.sun.enterprise.tools.common.dd.connector.MapElementgetMapElement(int index)

		return (MapElement)this.getValue(MAP_ELEMENT, index);
	
public java.lang.StringgetMapId()

		return getAttributeValue(MAPID);
	
voidinitialize(int options)

	
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveMapElement(com.sun.enterprise.tools.common.dd.connector.MapElement value)

		return this.removeValue(MAP_ELEMENT, value);
	
public voidsetDescription(java.lang.String value)

		this.setValue(DESCRIPTION, value);
	
public voidsetMapElement(com.sun.enterprise.tools.common.dd.connector.MapElement[] value)

		this.setValue(MAP_ELEMENT, value);
	
public voidsetMapElement(int index, com.sun.enterprise.tools.common.dd.connector.MapElement value)

		this.setValue(MAP_ELEMENT, index, value);
	
public voidsetMapId(java.lang.String value)

		setAttributeValue(MAPID, value);
	
public intsizeMapElement()

		return this.size(MAP_ELEMENT);
	
public voidvalidate()

		boolean restrictionFailure = false;
		// Validating property mapId
		if (getMapId() == null) {
			throw new org.netbeans.modules.schema2beans.ValidateException("getMapId() == null", "mapId", this);	// NOI18N
		}
		// Validating property description
		if (getDescription() != null) {
		}
		// Validating property mapElement
		for (int _index = 0; _index < sizeMapElement(); ++_index) {
			com.sun.enterprise.tools.common.dd.connector.MapElement element = getMapElement(_index);
			if (element != null) {
				element.validate();
			}
		}