Package de.lessvoid.xml.lwxs.elements

Examples of de.lessvoid.xml.lwxs.elements.Type


  public void addType(final String name, final Type typeParam) {
    types.put(name, typeParam);
  }

  public Type getType(final String name) throws Exception {
    Type t = types.get(name);
    if (t == null) {
      log.warning("Type [" + name + "] not found. Creating new one on the fly");
      t = new Type(name, null);
      addType(name, t);
    }
    return t;
  }
View Full Code Here


  public boolean isTypeAvailable(final String name) {
    return types.containsKey(name);
  }

  public XmlType loadXml(final XmlParser parser) throws Exception {
    Type t = getType(type);
    XmlProcessorType xmlType = t.createXmlProcessor(this);
    parser.nextTag();
    parser.required(root, xmlType);
    return xmlType.getXmlType();
  }
View Full Code Here

  }

  public void process(final XmlParser xmlParser, final Attributes attributes) throws Exception {
    String name = getNameAttribute(attributes);

    Type type = new Type(name, getExtendsAttribute(attributes));
    niftyXmlSchema.addType(name, type);

    SubstitutionGroup substGroup = new SubstitutionGroup();
    substGroup.add("element", new TypeProcessorElement(type));
    substGroup.add("group", new TypeProcessorSubstitutionGroup(type));
View Full Code Here

TOP

Related Classes of de.lessvoid.xml.lwxs.elements.Type

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.