当前位置: 首页>>代码示例>>Java>>正文


Java XMLReader.skipTag方法代码示例

本文整理汇总了Java中com.trollworks.toolkit.io.xml.XMLReader.skipTag方法的典型用法代码示例。如果您正苦于以下问题:Java XMLReader.skipTag方法的具体用法?Java XMLReader.skipTag怎么用?Java XMLReader.skipTag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.trollworks.toolkit.io.xml.XMLReader的用法示例。


在下文中一共展示了XMLReader.skipTag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: load

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/**
 * Loads a cost reduction.
 * 
 * @param reader The XML reader to use.
 */
protected void load(XMLReader reader) throws IOException {
    String marker = reader.getMarker();

    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (TAG_ATTRIBUTE.equals(name)) {
                setAttribute(Enums.extract(reader.readText(), TYPES, BonusAttributeType.ST));
            } else if (TAG_PERCENTAGE.equals(name)) {
                setPercentage(reader.readInteger(0));
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:23,代码来源:CostReduction.java

示例2: loadList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
@Override
protected void loadList(XMLReader reader, LoadState state) throws IOException {
    OutlineModel model = getModel();
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (Modifier.TAG_MODIFIER.equals(name)) {
                model.addRow(new Modifier(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:17,代码来源:ModifierList.java

示例3: loadList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
@Override
protected void loadList(XMLReader reader, LoadState state) throws IOException {
    OutlineModel model = getModel();
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (Skill.TAG_SKILL.equals(name) || Skill.TAG_SKILL_CONTAINER.equals(name)) {
                model.addRow(new Skill(this, reader, state), true);
            } else if (Technique.TAG_TECHNIQUE.equals(name)) {
                model.addRow(new Technique(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:19,代码来源:SkillList.java

示例4: loadSelf

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/** @param reader The reader to load from. */
protected void loadSelf(XMLReader reader) throws IOException {
    String name = reader.getName();

    if (TAG_DAMAGE.equals(name)) {
        mDamage = reader.readText();
    } else if (TAG_STRENGTH.equals(name)) {
        mStrength = reader.readText();
    } else if (TAG_USAGE.equals(name)) {
        mUsage = reader.readText();
    } else if (SkillDefault.TAG_ROOT.equals(name)) {
        mDefaults.add(new SkillDefault(reader));
    } else {
        reader.skipTag(name);
    }
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:17,代码来源:WeaponStats.java

示例5: loadSelf

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/** @param reader The XML reader to use. */
protected void loadSelf(XMLReader reader) throws IOException {
    String tag = reader.getName();

    if (TAG_AMOUNT.equals(tag)) {
        mAmount.load(reader);
    } else {
        reader.skipTag(tag);
    }
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:11,代码来源:Bonus.java

示例6: loadList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
@Override
protected void loadList(XMLReader reader, LoadState state) throws IOException {
    OutlineModel model = getModel();
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Equipment.TAG_EQUIPMENT.equals(name) || Equipment.TAG_EQUIPMENT_CONTAINER.equals(name)) {
                model.addRow(new Equipment(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:16,代码来源:EquipmentList.java

示例7: SkillDefault

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/**
 * Creates a skill default.
 *
 * @param reader The XML reader to use.
 */
public SkillDefault(XMLReader reader) throws IOException {
    String marker = reader.getMarker();

    mType = SkillDefaultType.Skill;
    mName = EMPTY;
    mSpecialization = EMPTY;
    mModifier = 0;

    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (TAG_TYPE.equals(name)) {
                setType(SkillDefaultType.getByName(reader.readText()));
            } else if (TAG_NAME.equals(name)) {
                setName(reader.readText());
            } else if (TAG_SPECIALIZATION.equals(name)) {
                setSpecialization(reader.readText());
            } else if (TAG_MODIFIER.equals(name)) {
                setModifier(reader.readInteger(0));
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:32,代码来源:SkillDefault.java

示例8: load

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
void load(XMLReader reader) throws IOException {
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String tag = reader.getName();
            if (!loadTag(reader, tag)) {
                reader.skipTag(tag);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:12,代码来源:Profile.java

示例9: loadAdvantageList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
private void loadAdvantageList(XMLReader reader, LoadState state) throws IOException {
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Advantage.TAG_ADVANTAGE.equals(name) || Advantage.TAG_ADVANTAGE_CONTAINER.equals(name)) {
                mAdvantages.addRow(new Advantage(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:14,代码来源:GURPSCharacter.java

示例10: loadSkillList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
private void loadSkillList(XMLReader reader, LoadState state) throws IOException {
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Skill.TAG_SKILL.equals(name) || Skill.TAG_SKILL_CONTAINER.equals(name)) {
                mSkills.addRow(new Skill(this, reader, state), true);
            } else if (Technique.TAG_TECHNIQUE.equals(name)) {
                mSkills.addRow(new Technique(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:16,代码来源:GURPSCharacter.java

示例11: loadSpellList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
private void loadSpellList(XMLReader reader, LoadState state) throws IOException {
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Spell.TAG_SPELL.equals(name) || Spell.TAG_SPELL_CONTAINER.equals(name)) {
                mSpells.addRow(new Spell(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:14,代码来源:GURPSCharacter.java

示例12: loadNoteList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
private void loadNoteList(XMLReader reader, LoadState state) throws IOException {
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Note.TAG_NOTE.equals(name) || Note.TAG_NOTE_CONTAINER.equals(name)) {
                mNotes.addRow(new Note(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:14,代码来源:GURPSCharacter.java

示例13: SpellPrereq

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/**
 * Loads a prerequisite.
 *
 * @param parent The owning prerequisite list, if any.
 * @param reader The XML reader to load from.
 */
public SpellPrereq(PrereqList parent, XMLReader reader) throws IOException {
    this(parent);

    String marker = reader.getMarker();
    loadHasAttribute(reader);

    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (TAG_NAME.equals(name)) {
                setType(TAG_NAME);
                mStringCriteria.load(reader);
            } else if (TAG_ANY.equals(name)) {
                setType(TAG_ANY);
                mQuantityCriteria.load(reader);
            } else if (TAG_COLLEGE.equals(name)) {
                setType(TAG_COLLEGE);
                mStringCriteria.load(reader);
            } else if (TAG_COLLEGE_COUNT.equals(name)) {
                setType(TAG_COLLEGE_COUNT);
                mQuantityCriteria.load(reader);
            } else if (TAG_QUANTITY.equals(name)) {
                mQuantityCriteria.load(reader);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:37,代码来源:SpellPrereq.java

示例14: OldWeapon

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
/**
 * Creates a new {@link OldWeapon}.
 * 
 * @param reader The XML reader to load from.
 */
public OldWeapon(XMLReader reader) throws IOException {
    String marker = reader.getMarker();

    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();

            if (TAG_DAMAGE.equals(name)) {
                mDamage = extract(reader);
            } else if (TAG_STRENGTH.equals(name)) {
                mStrength = extract(reader);
            } else if (TAG_ACCURACY.equals(name)) {
                mAccuracy = extract(reader);
            } else if (TAG_RANGE.equals(name)) {
                mRange = extract(reader);
            } else if (TAG_RATE_OF_FIRE.equals(name)) {
                mRateOfFire = extract(reader);
            } else if (TAG_SHOTS.equals(name)) {
                mShots = extract(reader);
            } else if (TAG_BULK.equals(name)) {
                mBulk = extract(reader);
            } else if (TAG_RECOIL.equals(name)) {
                mRecoil = extract(reader);
            } else if (TAG_REACH.equals(name)) {
                mReach = extract(reader);
            } else if (TAG_PARRY.equals(name)) {
                mParry = extract(reader);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:39,代码来源:OldWeapon.java

示例15: loadList

import com.trollworks.toolkit.io.xml.XMLReader; //导入方法依赖的package包/类
@Override
protected void loadList(XMLReader reader, LoadState state) throws IOException {
    OutlineModel model = getModel();
    String marker = reader.getMarker();
    do {
        if (reader.next() == XMLNodeType.START_TAG) {
            String name = reader.getName();
            if (Spell.TAG_SPELL.equals(name) || Spell.TAG_SPELL_CONTAINER.equals(name)) {
                model.addRow(new Spell(this, reader, state), true);
            } else {
                reader.skipTag(name);
            }
        }
    } while (reader.withinMarker(marker));
}
 
开发者ID:richardwilkes,项目名称:gcs,代码行数:16,代码来源:SpellList.java


注:本文中的com.trollworks.toolkit.io.xml.XMLReader.skipTag方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。