FileDocCategorySizeDatePackage
MapElement.javaAPI DocGlassfish v2 API4319Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.runtime.connector

MapElement

public class MapElement extends com.sun.enterprise.deployment.runtime.RuntimeDescriptor
This class was based on the schema2beans generated one modified to remove its dependencies on schema2beans libraries.
author
Jerome Dochez
version

Fields Summary
public static final String
PRINCIPAL
public static final String
BACKEND_PRINCIPAL
Principal
backendPrincipal
Constructors Summary
public MapElement(MapElement other)

    
    // copy constructor
      
    
	super(other);
    
public MapElement()

	super();
    
Methods Summary
public intaddPrincipal(Principal value)

	return this.addValue(PRINCIPAL, value);
    
public PrincipalgetPrincipal(int index)

	return (Principal)this.getValue(PRINCIPAL, index);
    
public Principal[]getPrincipal()

	return (Principal[])this.getValues(PRINCIPAL);
    
public booleanisBackendPrincipal()

	Boolean ret = (Boolean)this.getValue(BACKEND_PRINCIPAL);
	if (ret == null)
	    return false;
	return ret.booleanValue();
    
public intremovePrincipal(Principal value)

	return this.removeValue(PRINCIPAL, value);
    
public voidsetBackendPrincipal(boolean value)

	this.setValue(BACKEND_PRINCIPAL, Boolean.valueOf(value));
    
public voidsetPrincipal(int index, Principal value)

	this.setValue(PRINCIPAL, index, value);
    
public voidsetPrincipal(Principal[] value)

	this.setValue(PRINCIPAL, value);
    
public intsizePrincipal()

	return this.size(PRINCIPAL);
    
public booleanverify()

	return true;