gpt4 book ai didi

com.ebmwebsourcing.easybox.api.XmlObjectFactory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 06:05:05 27 4
gpt4 key购买 nike

本文整理了Java中com.ebmwebsourcing.easybox.api.XmlObjectFactory类的一些代码示例,展示了XmlObjectFactory类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlObjectFactory类的具体详情如下:
包路径:com.ebmwebsourcing.easybox.api.XmlObjectFactory
类名称:XmlObjectFactory

XmlObjectFactory介绍

暂无

代码示例

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public ExtensionElements getExtensionElements(){
  for(Serializable s : getModelObject().getContent()){
    if(s instanceof JAXBElement<?>){
      JAXBElement<?> e = (JAXBElement<?>) s;
      if(e.getValue() instanceof EJaxbTExtensionElements){
        return (ExtensionElements) getXmlContext().getXmlObjectFactory().wrap(e.getValue());
      }
    }
  }
  return null;
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private <T extends XmlObjectNode> T newInstance(Class<? extends T> c){
  if(context==null){
    context = new XmlContextFactory().newContext();
  }
  return context.getXmlObjectFactory().create(c);
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public LoopCharacteristics getLoopCharacteristics() {
  return (LoopCharacteristics)this.getXmlContext().getXmlObjectFactory().wrap(this.getModelObject()
      .getLoopCharacteristics().getValue());
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static Point getPoint(IPoint point) {
  Point result = objectFactory.create(Point.class);
  
  result.setX(point.getX());
  result.setY(point.getY());
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public Expression getExpression() {
  return (Expression) this.getXmlContext().getXmlObjectFactory()
      .wrap(this.getModelObject().getExpression().getValue());
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static BPMNLabelStyle getLabelStyle(IBPMNLabelStyle style) {
  BPMNLabelStyle result = objectFactory.create(BPMNLabelStyle.class);
  
  result.setId(style.getId());
  result.setFont(getFont(style.getFont()));
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybox/easybox-impl

public final XmlObject duplicateXmlObject() {
  @SuppressWarnings("unchecked")
  Model duplicateJaxbModel = (Model) getModelObject().duplicate();
  return getXmlContext().getXmlObjectFactory().wrap(duplicateJaxbModel,
      getClass());
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static BPMNLabel getLabel(IBPMNLabel label) {
  BPMNLabel result = objectFactory.create(BPMNLabel.class);
  
  result.setId(label.getId());
  result.setLabelStyle(new QName(label.getBPMNLabelStyle().getId()));
  
  adaptExtensions(label, result);
  
  result.setBounds(getBounds((com.ebmwebsourcing.petalsbpm.business.domain.di.impl.BPMNLabel)label));
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public ConversationNode[] getConversationNode() {
  ConversationNode[] result = new ConversationNode[getModelObject().getConversationNode().size()];
  for(int i=0; i<result.length; i++){
    result[i] = (ConversationNode)this.getXmlContext().getXmlObjectFactory()
        .wrap(getModelObject().getConversationNode().get(i).getValue());
  }
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static BPMNPlane getPlane(IBPMNPlane plane){
  BPMNPlane result = objectFactory.create(BPMNPlane.class);
  result.setId(plane.getId());
  result.setBpmnElement(new QName(plane.getModelElement().getId()));
  
  adaptExtensions(plane, result);
  
  for(IDiagramElement de : plane.getOwnedElements()){
    result.addDiagramElement(getDiagramElement(de));
  }
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public ConversationNode[] getConversationNode() {
  ConversationNode[] result = new ConversationNode[getModelObject().getConversationNode().size()];
  for(int i=0; i<result.length; i++){
    result[i] = (ConversationNode)this.getXmlContext().getXmlObjectFactory()
            .wrap(this.getModelObject().getConversationNode().get(i));
  }
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static Bounds getBounds(IBounds bounds) {
  Bounds result = objectFactory.create(Bounds.class);
  
  result.setHeight(bounds.getHeight());
  result.setWidth(bounds.getWidth());
  result.setX(bounds.getX());
  result.setY(bounds.getY());
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public Script getScript() {
  return this.getXmlContext().getXmlObjectFactory()
      .wrap(this.getModelObject().getScript(), Script.class);
}

代码示例来源:origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static Font getFont(
    com.ebmwebsourcing.geasytools.diagrameditor.domain.diagramdefinition.diagramcommon.layout.Font font) {
  Font result = objectFactory.create(Font.class);
  
  result.setIsBold(font.isBold());
  result.setIsItalic(font.isItalic());
  result.setIsStrikeThrough(font.isStrikeThrough());
  result.setIsUnderline(font.isUnderline());
  result.setName(font.getName());
  result.setSize(font.getSize());
  
  return result;
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public InputSet getInputSet() {
  return this.getXmlContext().getXmlObjectFactory()
      .wrap(this.getModelObject().getInputSet(), InputSetImpl.class);
}

代码示例来源:origin: com.ebmwebsourcing.easybpmn/bpmn20-impl

@Override
public Expression getLoopCondition() {
  return (Expression)
      this.getXmlContext().getXmlObjectFactory().wrap(this.getModelObject().getLoopCondition());
}

代码示例来源:origin: com.ebmwebsourcing.easybox/easybox-impl

@SuppressWarnings("unchecked")
public final <X extends XmlObject> X duplicateXmlObjectAs(
    Class<X> targetInterfaceClass) {
  assert targetInterfaceClass != null;
  Class<? extends ModelObject> modelObjectClass = getXmlContext().getClassMetadata().get(getClass(), 
      ClassMetadataConstants.IMPLEMENTATION_CLASS_MODELOBJECT_CLASS);
  
  assert AbstractJaxbModelObject.class.isAssignableFrom(modelObjectClass);
  AbstractJaxbModelObject ajmo = getModelObject().duplicateAs(
      (Class<? extends AbstractJaxbModelObject>) modelObjectClass);
  return getXmlContext().getXmlObjectFactory().wrap(ajmo,
      targetInterfaceClass);
}

代码示例来源:origin: com.ebmwebsourcing.easybox/easybox-impl

@Override
public XmlObjectNode[] getXmlObjectNaturalChildren() {
  ModelObject[] modelChildren = getModelObject().getChildren();
  XmlObjectNode[] children = new XmlObject[modelChildren.length];
  for (int i = 0 ; i < modelChildren.length ; ++i) {
    children[i] = getXmlContext().getXmlObjectFactory().wrap(modelChildren[i]);
  }
  return children;
}

代码示例来源:origin: com.ebmwebsourcing.easyschema/easyschema10-impl

@Override
public ExtensionType getExtension() {
  return getXmlContext().getXmlObjectFactory().wrap(getModelObject().getExtension(),
      ExtensionTypeImpl.class);
}

代码示例来源:origin: com.ebmwebsourcing.easyschema/easyschema10-impl

@Override
public Restriction getRestriction() {
  return getXmlContext().getXmlObjectFactory().wrap(getModelObject().getRestriction(),
      RestrictionImpl.class);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com