本文整理汇总了Java中javax.xml.bind.annotation.DomHandler类的典型用法代码示例。如果您正苦于以下问题:Java DomHandler类的具体用法?Java DomHandler怎么用?Java DomHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DomHandler类属于javax.xml.bind.annotation包,在下文中一共展示了DomHandler类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ArrayReferenceNodeProperty
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public ArrayReferenceNodeProperty(JAXBContextImpl p, RuntimeReferencePropertyInfo prop) {
super(p, prop, prop.getXmlName(), prop.isCollectionNillable());
for (RuntimeElement e : prop.getElements()) {
JaxBeanInfo bi = p.getOrCreate(e);
expectedElements.put( e.getElementName().getNamespaceURI(),e.getElementName().getLocalPart(), bi );
}
isMixed = prop.isMixed();
if(prop.getWildcard()!=null) {
domHandler = (DomHandler) ClassFactory.create(prop.getDOMHandler());
wcMode = prop.getWildcard();
} else {
domHandler = null;
wcMode = null;
}
}
示例2: SingleReferenceNodeProperty
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public SingleReferenceNodeProperty(JAXBContextImpl context, RuntimeReferencePropertyInfo prop) {
super(context,prop);
acc = prop.getAccessor().optimize(context);
for (RuntimeElement e : prop.getElements()) {
expectedElements.put( e.getElementName(), context.getOrCreate(e) );
}
if(prop.getWildcard()!=null) {
domHandler = (DomHandler) ClassFactory.create(prop.getDOMHandler());
wcMode = prop.getWildcard();
} else {
domHandler = null;
wcMode = null;
}
}
示例3: ArrayReferenceNodeProperty
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public ArrayReferenceNodeProperty(JAXBContextImpl p, RuntimeReferencePropertyInfo prop) {
super(p, prop, prop.getXmlName(), prop.isCollectionNillable());
for (RuntimeElement e : prop.getElements()) {
JaxBeanInfo bi = p.getOrCreate(e);
expectedElements.put( e.getElementName().getNamespaceURI(),e.getElementName().getLocalPart(), bi );
}
isMixed = prop.isMixed();
if(prop.getWildcard()!=null) {
domHandler = (DomHandler) ClassFactory.create(prop.getDOMHandler().getWrappered());
wcMode = prop.getWildcard();
} else {
domHandler = null;
wcMode = null;
}
}
示例4: SingleReferenceNodeProperty
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public SingleReferenceNodeProperty(JAXBContextImpl context, RuntimeReferencePropertyInfo prop) {
super(context,prop);
acc = prop.getAccessor().optimize(context);
for (RuntimeElement e : prop.getElements()) {
expectedElements.put( e.getElementName(), context.getOrCreate(e) );
}
if(prop.getWildcard()!=null) {
domHandler = (DomHandler) ClassFactory.create(prop.getDOMHandler().getWrappered());
wcMode = prop.getWildcard();
} else {
domHandler = null;
wcMode = null;
}
}
示例5: writeDom
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public <E> void writeDom(E element, DomHandler<E, ?> domHandler, Object parentBean, String fieldName) throws SAXException {
Source source = domHandler.marshal(element,this);
if(contentHandlerAdapter==null)
contentHandlerAdapter = new ContentHandlerAdaptor(this);
try {
getIdentityTransformer().transform(source,new SAXResult(contentHandlerAdapter));
} catch (TransformerException e) {
reportError(fieldName,e);
}
}
示例6: DomLoader
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public DomLoader(DomHandler<?, ResultT> dom) {
super(true);
this.dom = dom;
}
示例7: WildcardLoader
import javax.xml.bind.annotation.DomHandler; //导入依赖的package包/类
public WildcardLoader(DomHandler dom, WildcardMode mode) {
this.dom = new DomLoader(dom);
this.mode = mode;
}