Package org.brixcms.markup.tag

Examples of org.brixcms.markup.tag.Item


    @Override
    public Item nextMarkupItem() {
        if (items == null) {
            List<Item> temp = new ArrayList<Item>();
            Item i = getDelegate().nextMarkupItem();
            while (i != null) {
                temp.add(i);
                i = getDelegate().nextMarkupItem();
            }
            items = transform(temp);
View Full Code Here


        if (markupSource == null) {
            throw new IllegalArgumentException("Argument 'markupSource' may not be null.");
        }
        this.expirationToken = markupSource.getExpirationToken();
        items = new ArrayList<Item>();
        Item item = markupSource.nextMarkupItem();
        while (item != null) {
            items.add(item);
            item = markupSource.nextMarkupItem();
        }
        this.doctype = markupSource.getDoctype();
View Full Code Here

    @Override
    protected List<Item> transform(List<Item> originalItems) {
        List<Item> result = new ArrayList<Item>(originalItems.size());
        for (Item i : originalItems) {
            if (i instanceof Tag) {
                Item item = processTag((Tag) i);
                if (item != null) {
                    result.add(item);
                }
            } else if (skipLevel == 0) {
                result.add(i);
View Full Code Here

     */
    public Collection<String> getVariableKeys() {
        Set<String> keys = new HashSet<String>();
        PageMarkupSource source = new PageMarkupSource(this);
        VariableTransformer transfomer = new VariableTransformer(source, this);
        Item i = transfomer.nextMarkupItem();
        while (i != null) {
            if (i instanceof VariableKeyProvider) {
                Collection<String> k = ((VariableKeyProvider) i).getVariableKeys();
                if (k != null) {
                    keys.addAll(k);
View Full Code Here

    }

    public Collection<String> getTileIDs() {
        Set<String> keys = new HashSet<String>();
        PageMarkupSource source = new PageMarkupSource(this);
        Item i = source.nextMarkupItem();
        while (i != null) {
            if (i instanceof TileTag) {
                keys.add(((TileTag) i).getTileName());
            }
            i = source.nextMarkupItem();
View Full Code Here

TOP

Related Classes of org.brixcms.markup.tag.Item

Copyright © 2018 www.massapicom. 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.