Package org.foray.fotree.value

Examples of org.foray.fotree.value.ValueCollection.addItem()


            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdFontFamily.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalKeyword()
                    || parsedToken instanceof DtName
                    || parsedToken instanceof DtString) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here


            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdBorderColor.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalColor()
                    || parsedToken.canEvalKeyword()) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

            final String token = tokenizer.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdVoiceFamily.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalKeyword()
                    || parsedToken instanceof DtName) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, value,
                    null);
            if (parsedToken.canEvalLength()
                    || parsedToken.canEvalPercentage()) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

        while (st.hasMoreTokens()) {
            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    DtBorderWidth.VALID_KEYWORDS);
            if (DtBorderWidth.isBorderWidth(parsedToken)) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

            final ValueCollection collection = new ValueCollection();
            for (int i = 0; i < tokenizedList.size(); i++) {
                final String token = tokenizedList.get(i);
                final DtURI uri = DtURI.makeUriDT(token);
                if (uri != null) {
                    collection.addItem(uri);
                }
            }
            return collection;
        }
        throw unexpectedValue(value, fobj);
View Full Code Here

            throw unexpectedValue(attributeValue, fobj);
        }
        while (tokenizer.hasMoreTokens()) {
            final String token = tokenizer.nextToken();
            final PropertyValue pv = parseToken(fobj, token);
            collection.addItem(pv);
        }
        return collection;
    }

    /**
 
View Full Code Here

            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, value,
                    null);
            if (parsedToken.canEvalLength()
                    || parsedToken.canEvalPercentage()) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

                    DtBorderStyle.VALID_KEYWORDS);
            final FoValue foValue = this.convertValueToFoValue(parsedToken);
            if (DtBorderStyle.isBorderStyle(foValue)) {
                final DtBorderStyle borderStyle = DtBorderStyle.getInstance(
                        foValue);
                collection.addItem(borderStyle);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

            final String token = st.nextToken();
            pv = DtName.makeNameDT(token);
            if (pv == null) {
                throw unexpectedValue(value, fobj);
            }
            collection.addItem(pv);
        }
        return collection;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.