AMDisplayType.java revision f56a278c148b90f6c2a675e0c1fa8686ca5abed4
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AMDisplayType.java,v 1.2 2008/06/25 05:42:49 qcheng Exp $
*
*/
/* - NEED NOT LOG - */
public class AMDisplayType {
public static final int UNDEFINED_SYNTAX = -9;
public static final int NONE_SYNTAX = -1;
public static final int SYNTAX_TEXT = 0;
public static final int SYNTAX_BOOLEAN = 1;
public static final int SYNTAX_TEXTFIELD = 2;
public static final int SYNTAX_PASSWORD = 3;
public static final int SYNTAX_ENCRYPTED_PASSWORD = 4;
public static final int SYNTAX_PARAGRAPH = 5;
public static final int SYNTAX_RADIO = 6;
public static final int SYNTAX_LINK = 7;
public static final int SYNTAX_BUTTON = 8;
public static final int SYNTAX_NAME_VALUE_LIST = 9;
public static final int SYNTAX_SINGLE_CHOICE = 10;
public static final int SYNTAX_MULTIPLE_CHOICE = 11;
public static final int SYNTAX_LIST = 12;
public static final int DEFAULT_SYNTAX = SYNTAX_TEXTFIELD;
public static final int TYPE_SINGLE = 0;
public static final int TYPE_SINGLE_CHOICE = 1;
public static final int TYPE_MULTIPLE_CHOICE = 2;
public static final int TYPE_LIST = 3;
public static final int DEFAULT_TYPE = TYPE_SINGLE;
public static AMDisplayType getInstance() {
return instance;
}
private AMDisplayType() {
}
/**
* Returns display type of an action schema.
*
* @param actionSchema Action schema
* @return display syntax of an action schema.
*/
int displayType = DEFAULT_TYPE;
}
return displayType;
}
/**
* Returns display syntax of an action schema.
*
* @param actionSchema Action schema
* @return display syntax of an action schema.
*/
if (displaySyntax == UNDEFINED_SYNTAX) {
}
return displaySyntax;
}
/**
* Returns display syntax of an action schema.
*
* @param syntax SM Based Syntax
* @return display syntax of an action schema.
*/
public static int getDisplaySyntax(
) {
int displaySyntax = DEFAULT_SYNTAX;
}
return displaySyntax;
}
/**
* Returns display syntax of an action schema.
*
* @param syntax Policy Based Syntax
* @return display syntax of an action schema.
*/
int displaySyntax = NONE_SYNTAX;
//TOFIX: Editable list
}
return displaySyntax;
}
/**
* Gets display syntax from UI Type
*
* @param actionSchema - action schema
* @return display syntax from UI Type
*/
int displaySyntax = UNDEFINED_SYNTAX;
}
}
return displaySyntax;
}
}