Package org.jibx.util

Examples of org.jibx.util.LazyList


     * @param end ending match list offset
     * @param base starting element for match
     * @param matches elements matching expression
     */
    private void match(int offset, int end, OpenAttrBase base, ArrayList matches) {
        LazyList childs = base.getChildrenWritable();
        StepBase step = m_steps[offset];
        int steppos = step.position();
        int position = 0;
        for (int i = 0; i < childs.size(); i++) {
            OpenAttrBase child = (OpenAttrBase)childs.get(i);
            if (step.match(child)) {
                if (steppos <= 0 || steppos == ++position) {
                    if (offset == end) {
                        matches.add(child);
                    } else {
View Full Code Here


     * @param tns target namespace
     */
    public Message(String name, String tns) {
        m_name = name;
        m_qName = new QName(tns, name);
        m_parts = new LazyList();
    }
View Full Code Here

     * @param schema
     * @param custom schema set customization
     * @return owning schemaset, <code>null</code> if none
     */
    public SchemasetCustom findSchemaset(SchemaElement schema, SchemasetCustom custom) {
        LazyList childs = custom.getChildren();
        SchemasetCustom owner = null;
        String name = schema.getResolver().getName();
        for (int i = 0; i < childs.size(); i++) {
            Object child = childs.get(i);
            if (child instanceof SchemasetCustom) {
                SchemasetCustom schemaset = (SchemasetCustom)child;
                if (schemaset.isInSet(name, schema)) {
                    SchemasetCustom match = findSchemaset(schema, schemaset);
                    if (match != null) {
View Full Code Here

      super(SCHEMA_TYPE);
        m_schemaChildren = new FilteredSegmentList(getChildrenWritable(),
            SCHEMA_REFERENCE_MASK, this);
        m_topLevelChildren = new FilteredSegmentList(getChildrenWritable(),
            TOP_LEVEL_DEFINITION_MASK, m_schemaChildren, this);
        m_dependentSchemas = new LazyList();
        m_blockDefault = new AllEnumSet(ElementElement.s_blockValues,
            "blockDefault");
        m_finalDefault = new AllEnumSet(ElementElement.s_derivationValues,
            "finalDefault");
        m_register = new NameRegister();
View Full Code Here

TOP

Related Classes of org.jibx.util.LazyList

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.