Examples of XMLResourceImpl


Examples of org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl

    super();
  }
 
  public Resource createResource(URI uri)
  {
    XMLResourceImpl result = new DataGraphResourceImpl(uri);

    ExtendedMetaData extendedMetaData = ((TypeHelperImpl)TypeHelper.INSTANCE).getExtendedMetaData();
    DataObjectUtil.configureXMLResource(result, extendedMetaData);
   
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS, Boolean.TRUE);
    //result.setEncoding("UTF-8");
    //result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
    //result.getDefaultSaveOptions().put(XMLResource.OPTION_LINE_WIDTH, new Integer(80));

    return result;
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl

    super();
  }
 
  public Resource createResource(URI uri)
  {
    XMLResourceImpl result = new DataGraphResourceImpl(uri);

    ExtendedMetaData extendedMetaData = ((TypeHelperImpl)TypeHelper.INSTANCE).getExtendedMetaData();
    DataObjectUtil.configureXMLResource(result, extendedMetaData);
   
    result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
    result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_DEPRECATED_METHODS, Boolean.TRUE);
    //result.setEncoding("UTF-8");
    //result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
    //result.getDefaultSaveOptions().put(XMLResource.OPTION_LINE_WIDTH, new Integer(80));

    return result;
View Full Code Here

Examples of org.ozoneDB.xml.cli.resources.XMLResourceImpl

                    throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, "resource " + id + " already exists");
                }
                container = XMLContainer.newContainer(database, id);
                //System.out.println("CollectionImpl.createResource() - created XMLContainer, adding id to the XMLCollection");
                collection.addResource(id);
                return new XMLResourceImpl(id, database, this, container);
            } else if ( type.equals(BinaryResource.RESOURCE_TYPE) ) {
                //return new BinaryResourceImpl(this, id);
                throw new XMLDBException( ErrorCodes.VENDOR_ERROR, "BinaryResource: Not yet implemented");
            } else {
                throw new XMLDBException(ErrorCodes.UNKNOWN_RESOURCE_TYPE);
View Full Code Here

Examples of org.ozoneDB.xml.cli.resources.XMLResourceImpl

            if (container == null) {
                System.out.println("CollectionImpl.getResource() - container is null");
                return null;
            } else {
                System.out.println("CollectionImpl.getResource() - creating new XMLResourceImpl");
                Resource resource = new XMLResourceImpl( id, database, this, container );
                //System.out.println("CollectionImpl.getResource() - created new XMLResourceImpl");
                return resource;
            }

        } catch (Exception e) {
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.