本文整理汇总了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);
}
示例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++;
}
}
}
}
示例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;
}
}
示例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);
}
}
}
示例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;
}
示例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 );
}
示例7: elementDecl
import com.sun.xml.xsom.XSElementDecl; //导入方法依赖的package包/类
@Override
public QName elementDecl(final XSElementDecl decl) {
return new QName(decl.getTargetNamespace(), decl.getName());
}
示例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;
}