Syntax.java revision 6636284dd99df27fda992fb77fb6236657269ec9
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: Syntax.java,v 1.3 2008/06/25 05:43:45 qcheng Exp $
*
* Portions Copyrighted 2014 ForgeRock AS.
*/
/**
* Provides an enum like support for the syntax of values
* such as ANY, NONE, LIST, CONSTANT, SINGLE_CHOICE, MULTIPLE_CHOICE
* In other words, provides access to a set of finite values and enforces
* new values can not be created by users
*
* @supported.all.api
* @deprecated since 12.0.0
*/
public final class Syntax {
/**
* value is a free form text, would be typically shown in as editable
* text field
*/
/**
* value is a free form multi list text field
*/
/**
* value is a free form text, could also search from a large set of values
*/
/**
* no value is allowed
*/
/**
* value is a constant string, would be typically shown as non
* editable text
*/
/**
* value is a single choice from a list
*/
/**
* value is multiple choice from list
*/
}
/**
* Returns the string representation of this object.
*
* @return string representation of this Syntax
*/
return _type;
}
/**
* Checks whether the argument object is equal to this Syntax
*
* @param arg Syntax object for comparison.
* @return <code>true</code> if the argument object is equal
* to this Syntax, else <code>false</code>
*/
boolean equalObjects = false;
equalObjects = false;
} else if ( arg == this ) {
equalObjects = true;
equalObjects = false;
equalObjects = true;
}
return equalObjects;
}
}