demo for SASAX - 1.5

jp.ne.dti.lares.foozy.sasax
Class ChoiceDemo.StringElementFactory

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.sasax.ChoiceDemo.StringElementFactory
All Implemented Interfaces:
DemoConstants, ElementFactory
Enclosing class:
ChoiceDemo

public static class ChoiceDemo.StringElementFactory
extends java.lang.Object
implements ElementFactory, DemoConstants

Factory class to create "string" element.

Author:
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>(code/doc)

Fields inherited from interface jp.ne.dti.lares.foozy.sasax.DemoConstants
COMPOSITE_L_NAME, ENVELOPE_L_NAME, INT_L_NAME, LIST_L_NAME, STRING_L_NAME, URI
 
Constructor Summary
ChoiceDemo.StringElementFactory()
           
 
Method Summary
 boolean accepts(ParseContext context, java.lang.String uri, java.lang.String lName)
          Examine whether specified NAME is acceptable or not.
 Element create(Element parent)
          Create element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceDemo.StringElementFactory

public ChoiceDemo.StringElementFactory()
Method Detail

accepts

public boolean accepts(ParseContext context,
                       java.lang.String uri,
                       java.lang.String lName)
Examine whether specified NAME is acceptable or not.

This examines with DemoConstants.URI and DemoConstants.STRING_L_NAME.

Specified by:
accepts in interface ElementFactory

create

public Element create(Element parent)
Create element.

This create ValueElement.StringType instance.

Specified by:
create in interface ElementFactory

demo for SASAX - 1.5