QualifierArray.java revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* ident "%Z%%M% %I% %E% SMI"
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/**
* An an implementation of the qualifier type that provides an array of
* qualifier types. The element qualifer type is contained within the array
* qualifier type.
*/
public class QualifierArray extends QualifierTypeImpl {
/**
* The default String of characters that delimit elements in a String
* representation of the array when it is parsed.
*/
/**
* The default String of characters that delimit elements in a String
* representation of the array when it is formatted.
*/
/**
* The type of the arrays elements.
*/
protected QualifierType type;
/**
* The String of characters that delimit elements in a String
* representation of the array when it is parsed.
*/
/**
* The String of characters that delimit elements in a String
* representation of the array when it is formatted.
*/
private QualifierArray() {}
/**
* Construct an array qualifier type.
*
* @param type
* The qualifier type of the arrays elements.
*/
}
/**
* Construct an array qualifier type.
*
* @param type
* The qualifier type of the arrays elements.
* @param delim
* The String of characters that delimit elements in a String
* representation of the array.
*/
this.parseDelim = parseDelim;
this.formatDelim = formatDelim;
}
/**
* Get the arrays element qualifier type.
*
* @areturn
* The qualifier type of the arrays elements.
*/
public QualifierType getElementType() {
return type;
}
/**
* Determine if the given value is a legal value for this type. The
* element delimiters are the default or those supplied during
* construction of the QualifierArray.
*
* @param value
* The value to test.
* @return
* Returns a Java type containing the parse value if legal, otherwise
* null is returned if the value was illegal.
*/
}
/**
* Determine if the given value is a legal value for this type. The
* element delimiters provided override the use of the defaults or
* those supplied during the construction of the QualifierArray.
*
* @param value
* The value to test.
* @param parseDelim
* The String of characters that delimit elements in a String
* representation of the array.
* @return
* Returns a Java type containing the parse value if legal, otherwise
* null is returned if the value was illegal.
*/
return null;
}
while (tokenizer.hasMoreTokens()) {
return null;
}
}
}
/**
* Format the given string if it is a legal value for this type. The
* element delimiters are the default or those supplied during
* construction of the QualifierArray.
*
* @param value
* The value to format.
* @return
* Returns a string containing the formatted value if legal, otherwise
* null is returned if the value was illegal.
*/
}
/**
* Format the given string if it is a legal value for this type. The
* element delimiters provided override the use of the defaults or
* those supplied during the construction of the QualifierArray.
*
* @param value
* The value to format.
* @param parseDelim
* The String of characters that delimit elements in a String
* representation of the array when it is parsed.
* @param formatDelim
* The String of characters that delimit elements in a String
* representation of the array when it is formatted.
* @return
* Returns a string containing the formatted value if legal, otherwise
* null is returned if the value was illegal.
*/
return null;
}
while (tokenizer.hasMoreTokens()) {
return null;
}
if (tokenizer.hasMoreTokens()) {
}
}
}
/**
* Get the String containing the characters that delimit elements in
* a String representation of the array when it is parsed.
*
* @return
* Returns a String containing the characters that delimit elements in
* a String representation of the array when it is parsed.
*/
public String getParseDelimiters() {
return parseDelim;
}
/**
* Get the String containing the characters that delimit elements in
* a String representation of the array when it is formatted.
*
* @return
* Returns a String containing the characters that delimit elements in
* a String representation of the array when it is formatted.
*/
public String getFormatDelimiters() {
return formatDelim;
}
public Class getJavaType() {
}
}
}