Examples of LazyList


Examples of org.jibx.util.LazyList

     * @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

Examples of org.jibx.util.LazyList

      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

Examples of org.rascalmpl.library.experiments.resource.results.buffers.LazyList

public class CharStreamResult extends ResourceResult {

  public CharStreamResult(Type type, IValue value, IEvaluatorContext ctx, ISourceLocation fullURI, String displayURI) {
    super(type, value, ctx, fullURI, displayURI);
    URI uri = FileURIResolver.constructFileURI(fullURI.getURI().getPath());
    this.value = new LazyList(80, new CharStreamFiller(ValueFactoryFactory.getValueFactory().sourceLocation(uri), ctx), type.getElementType());
  }
View Full Code Here

Examples of org.rascalmpl.library.experiments.resource.results.buffers.LazyList

    super(type, value, ctx, fullURI, displayURI);
    String str = fullURI.getURI().getPath();
    String newHost = str.substring(1,str.indexOf("/",1));
    String newPath = str.substring(str.indexOf("/",1)+1);
    URI uri = URIUtil.assumeCorrect(newHost, "", newPath);
    this.value = new LazyList(25, new LineStreamFiller(ValueFactoryFactory.getValueFactory().sourceLocation(uri), ctx), type.getElementType());
  }
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.