static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
* @param propindex - the <tt>int</tt> property index.
* @param foNode - the <tt>FONode</tt> on which this expression is being
* parsed.
- * @value - the <tt>PropertyValue</tt> passed from
- * <i>PropertyParser.parse()</i>.
- * @return the refined <tt>PropertyValue</tt>.
- * @throws <tt>PropertyException</tt>.
+ * @param value passed from <i>PropertyParser.parse()</i>
+ * @return the refined <tt>PropertyValue</tt>
+ * @throws PropertyException
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value)
if (value.size() == 0)
throw new PropertyException
("Empty list for Background");
- ListIterator elements = ((PropertyValueList)value).listIterator();
+ ListIterator elements = value.listIterator();
scanning_elements: while (elements.hasNext()) {
PropertyValue pval = (PropertyValue)(elements.next());
/**
* Do the work for the three argument refineParsing method.
- * @param propindex - the <tt>int</tt> property index.
- * @param foNode - the <tt>FONode</tt> being built
+ * @param propindex the property index.
+ * @param foNode the FONode being built
* @param value <tt>PropertyValue</tt> returned by the parser
- * @param nested <tt>boolean</tt> indicating whether this method is
+ * @param nested indicates whether this method is
* called normally (false), or as part of another <i>refineParsing</i>
- * method.
- * @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FOTree,PropertyValue)
+ * method
+ * @return the verified <tt>PropertyValue</tt>
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
* called normally (false), or as part of another <i>refineParsing</i>
* method.
* @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FONode,PropertyValue)
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
// terms must be manually changed.
/**
- * @param <tt>int</tt> property index
- * @param <tt>int</tt> mappedEnum enumeration value
+ * @param node the FONode with an expressing the property
+ * @param property the property index
+ * @param enum the mappedEnum enumeration value
* @return <tt>Numeric[]</tt> containing the values corresponding
* to the MappedNumeric enumeration constants for border width
*/
* called normally (false), or as part of another <i>refineParsing</i>
* method.
* @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FONode,PropertyValue)
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
* called normally (false), or as part of another <i>refineParsing</i>
* method.
* @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FONode,PropertyValue)
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
* The argument must be either a ColorType already, in which case
* it is returned unchanged, or an NCName whose string value is a
* standard color or 'transparent'.
- * @param propindex the index of the property to which this value is
+ * @param property the index of the property to which this value is
* being applied.
* @param value <tt>PropertyValue</tt>
* @return <tt>ColorValue</tt> equivalent of the argument
- * @exception <tt>PropertyException</tt>
+ * @exception PropertyException
*/
protected static ColorType getColor(int property, PropertyValue value)
throws PropertyException
* called normally (false), or as part of another <i>refineParsing</i>
* method.
* @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FONode,PropertyValue)
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length - 1; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
rwEnumHash.put("grey", Ints.consts.get(ColorCommon.GRAY));
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
* @return <tt>PropertyValueList</tt> containing a
* <tt>PropertyValue</tt> for each property in the expansion of the
* shorthand.
- * @exception PropertyValueException
+ * @exception PropertyException
*/
private static PropertyValueList
processSpaceSepList(FONode foNode,
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
* called normally (false), or as part of another <i>refineParsing</i>
* method.
* @return <tt>PropertyValue</tt> the verified value
- * @see #refineParsing(FONode,PropertyValue)
*/
public PropertyValue refineParsing
(int propindex, FONode foNode, PropertyValue value, boolean nested)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
* @return <tt>PropertyValue</t> the same value, with its property set
* to the <i>property</i> argument, if it is an Auto or a
* <tt>Numeric</tt> distance
- * @exception <tt>PropertyException</tt> if the conditions are not met
+ * @exception PropertyException if the conditions are not met
*/
private static PropertyValue autoOrDistance
(PropertyValue value, int property)
* @param value <tt>PropertyValue</tt> the value being tested
* @return <tt>PropertyValue</t> the same value if it is an Auto or a
* <tt>Numeric</tt> distance
- * @exception <tt>PropertyException</tt> if the conditions are not met
+ * @exception PropertyException if the conditions are not met
*/
private static PropertyValue autoOrDistance(PropertyValue value)
throws PropertyException
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
}
} else { // list is a PropertyValueList
ssList = spaceSeparatedList((PropertyValueList)list);
- iter = ((PropertyValueList)ssList).iterator();
+ iter = ssList.iterator();
while (iter.hasNext()) {
Object value = iter.next();
if (value instanceof NCName)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)
static {
rwEnumHash = new HashMap((int)(rwEnums.length / 0.75) + 1);
for (int i = 1; i < rwEnums.length; i++ ) {
- rwEnumHash.put((Object)rwEnums[i],
- (Object) Ints.consts.get(i));
+ rwEnumHash.put(rwEnums[i],
+ Ints.consts.get(i));
}
}
public int getEnumIndex(String enum)