当前位置: 首页>>代码示例>>Java>>正文


Java XSElementDecl.getName方法代码示例

本文整理汇总了Java中com.sun.xml.xsom.XSElementDecl.getName方法的典型用法代码示例。如果您正苦于以下问题:Java XSElementDecl.getName方法的具体用法?Java XSElementDecl.getName怎么用?Java XSElementDecl.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.xml.xsom.XSElementDecl的用法示例。


在下文中一共展示了XSElementDecl.getName方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: elementDeclSimple

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
private XmlForm elementDeclSimple(XSElementDecl decl, XSSimpleType simpleType) {
  FormElement element = declSimple(simpleType, decl.getName(), decl.getDefaultValue(), decl.getFixedValue());
  if (element == null)
    return null;
  
  XmlWriter writer = new XmlElementWriter(decl.getName(), null,
      new TextXmlWriter(new FormElementWriter(element)));
  
  XmlReader reader = new XmlElementReader(decl.getName(), null,
      new TextXmlReader(new FormElementHandler(element)));
  
  if (ignoreWhitespace)
    reader = WhitespaceReader.appendTo(reader);

  return new XmlFormImpl(element, writer, reader);
}
 
开发者ID:reinra,项目名称:dynaform,代码行数:17,代码来源:XmlFormBuilder.java

示例2: termProcessing

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
private void termProcessing( Value value, SOAPElement element, SOAPEnvelope envelope, boolean first,
	XSTerm currTerm, int getMaxOccur,
	XSSchemaSet sSet, String messageNamespace )
	throws SOAPException
{

	if ( currTerm.isElementDecl() ) {
		ValueVector vec;
		XSElementDecl currElementDecl = currTerm.asElementDecl();
		String name = currElementDecl.getName();
		String prefix = (first) ? getPrefix( currElementDecl ) : getPrefixOrNull( currElementDecl );
		SOAPElement childElement;
		if ( (vec = value.children().get( name )) != null ) {
			int k = 0;
			while( vec.size() > 0 && (getMaxOccur > k || getMaxOccur == XSParticle.UNBOUNDED) ) {
				if ( prefix == null ) {
					childElement = element.addChildElement( name );
				} else {
					childElement = element.addChildElement( name, prefix );
				}
				Value v = vec.remove( 0 );
				valueToTypedSOAP(
					v,
					currElementDecl,
					childElement,
					envelope,
					false,
					sSet,
					messageNamespace );
				k++;
			}
		}
	}

}
 
开发者ID:jolie,项目名称:jolie,代码行数:36,代码来源:SoapProtocol.java

示例3: elementDecl

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
public void elementDecl(XSElementDecl decl) {
	final QName declName = StringUtils.isEmpty(decl.getTargetNamespace()) ? new QName(
			decl.getName()) : new QName(decl.getTargetNamespace(),
			decl.getName());
	if (this.name.equals(declName)) {
		this.elementDecl = decl;
	}
}
 
开发者ID:highsource,项目名称:jaxb2-basics,代码行数:9,代码来源:FindXSElementDeclVisitor.java

示例4: elementDecl

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
@Override
public void elementDecl(XSElementDecl element)
{
  String elementName = element.getName();

  // If the current element has the name being searched store its type
  if (elementName.equals(this.searchName))
  {
    this.searchElement = element;

    // If the element does not refer to a type then return its content type
    // (Example create element)

  }

  // otherwise dig the content of the elements type
  else if (! ( elementName.equals(XMLTags.FIRST_CONDITION_TAG) || elementName.equals(XMLTags.SECOND_CONDITION_TAG) ))
  {
    XSType elementType = element.getType();
    XSComplexType elementComplexType = elementType.asComplexType();
    // if the type of the element is a complex type
    // visit whatever it has in its content.
    if (elementComplexType != null)
    {
      elementComplexType.getContentType().visit(this);
    }
  }
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:29,代码来源:XSDElementFinder.java

示例5: getRootSubsitutionGroup

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
public QName getRootSubsitutionGroup() {
	XSElementDecl tmp = element;
	XSElementDecl head = null;

	while ((tmp = tmp.getSubstAffiliation()) != null)
		head = tmp;

	return (head != null) ? new QName(head.getTargetNamespace(), head.getName()) : null;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:10,代码来源:ElementDecl.java

示例6: elementDecl

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
/**
 * @see com.sun.xml.xsom.visitor.XSTermFunction#elementDecl(XSElementDecl)
 */
public String elementDecl(XSElementDecl decl) {
    String name = decl.getName();
    if( name == null ) name = "";
    return name + " " + nameGetter.elementDecl( decl );
}
 
开发者ID:jolie,项目名称:jolie,代码行数:9,代码来源:ComponentNameFunction.java

示例7: elementDecl

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
@Override
public QName elementDecl(final XSElementDecl decl) {
	return new QName(decl.getTargetNamespace(), decl.getName());
}
 
开发者ID:mklemm,项目名称:jaxb2-rich-contract-plugin,代码行数:5,代码来源:MetaPlugin.java

示例8: getSubsitutionGroup

import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
public QName getSubsitutionGroup() {
	XSElementDecl head = element.getSubstAffiliation();
	return (head != null) ? new QName(head.getTargetNamespace(), head.getName()) : null;
}
 
开发者ID:citygml4j,项目名称:citygml4j,代码行数:5,代码来源:ElementDecl.java


注:本文中的com.sun.xml.xsom.XSElementDecl.getName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。