Examples of FOMFactory


Examples of org.apache.abdera.parser.stax.FOMFactory

                try {

                    final Abdera a = new Abdera();
                    final Factory f = a.getFactory();
                    if (f instanceof FOMFactory) {
                        FOMFactory ff = (FOMFactory) f;
                        ff.registerExtension(new MediaExtensionFactory());
                        ff.registerExtension(new OpenSearchExtensionFactory());
                    }
                    ABDERA = a;

                } finally {
                    Thread.currentThread().setContextClassLoader(classLoader);
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

    }

    @Override
    protected void initFactory() {
        if (factory == null)
            factory = new FOMFactory();
    }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

        Localizer.sprintf("WRONG.PARSER.INSTANCE",FOMFactory.class.getName()));
  }
 
  @Override
  protected void initFactory() {
    if (factory == null) factory = new FOMFactory();
  }     
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

  implements Entry {

  private static final long serialVersionUID = 1L;

  public FOMEntry() {
    super(Constants.ENTRY, new FOMDocument(), new FOMFactory());
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

  public void addAuthor(Person person) {
    addChild((OMElement)person);
  }
 
  public Person addAuthor(String name) {
    FOMFactory fomfactory = (FOMFactory) this.factory;
    Person person = fomfactory.newAuthor(this);
    person.setName(name);
    return person;
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

    person.setName(name);
    return person;
  }

  public Person addAuthor(String name, String email, String uri) {
    FOMFactory fomfactory = (FOMFactory) this.factory;
    Person person = fomfactory.newAuthor(this);
    person.setName(name);
    person.setEmail(email);
    person.setUri(uri);
    return person;
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

    }
    addChild((OMElement)category);
  }

  public Category addCategory(String term) {
    FOMFactory factory = (FOMFactory) this.factory;
    Category category = factory.newCategory(this);
    category.setTerm(term);
    return category;
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

    category.setTerm(term);
    return category;
  }

  public Category addCategory(String scheme, String term, String label) {
    FOMFactory factory = (FOMFactory) this.factory;
    Category category = factory.newCategory(this);
    category.setTerm(term);
    category.setScheme(scheme);
    category.setLabel(label);
    return category;   
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

 
  /**
   * Sets the content for this entry as @type="text"
   */
  public Content setContent(String value) {
    FOMFactory factory = (FOMFactory) this.factory;
    Content content = factory.newContent();
    content.setValue(value);
    setContentElement(content);
    return content;
  }
View Full Code Here

Examples of org.apache.abdera.parser.stax.FOMFactory

 
  /**
   * Sets the content for this entry
   */
  public Content setContent(String value, Content.Type type) {
    FOMFactory factory = (FOMFactory) this.factory;
    Content content = factory.newContent(type);
    content.setValue(value);
    setContentElement(content);
    return content;
  }
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.