本文整理了Java中org.eclipse.xsd.XSDElementDeclaration.isElementDeclarationReference()
方法的一些代码示例,展示了XSDElementDeclaration.isElementDeclarationReference()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDElementDeclaration.isElementDeclarationReference()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDElementDeclaration
类名称:XSDElementDeclaration
方法名:isElementDeclarationReference
[英]Returns the value of the 'Element Declaration Reference' attribute.
This concrete attribute is equivalent to
xsdElementDeclaration != xsdElementDeclaration.
#getResolvedElementDeclaration()
An infoset feature will never return an instance for which this is the true
since this is a concrete attribute that is used to represent an element declaration with a ref attribute.
[中]返回“元素声明引用”属性的值。
这个具体属性相当于
xsdElementDeclaration != xsdElementDeclaration.
#getResolvedElementDeclaration()
信息集功能永远不会返回一个实例,因为这是一个具体的属性,用于用ref属性表示元素声明。
代码示例来源:origin: geotools/geotools
/**
* Returns a list of all child element declarations of the specified type, no order is
* guaranteed.
*
* <p>The <code>includeParents</code> flag controls if this method should returns those elements
* defined on parent types.
*
* @param type The type
* @param includeParents flag indicating if parent types should be processed
* @return A list of @link XSDElementDeclaration objects, one for each child element.
*/
public static final List getChildElementDeclarations(
XSDTypeDefinition type, boolean includeParents) {
List particles = getChildElementParticles(type, includeParents);
List elements = new ArrayList();
for (Iterator p = particles.iterator(); p.hasNext(); ) {
XSDParticle particle = (XSDParticle) p.next();
XSDElementDeclaration decl = (XSDElementDeclaration) particle.getContent();
if (decl.isElementDeclarationReference()) {
decl = decl.getResolvedElementDeclaration();
}
elements.add(decl);
}
return elements;
}
代码示例来源:origin: geotools/geotools
XSDElementDeclaration child = (XSDElementDeclaration) particle.getContent();
if (child.isElementDeclarationReference()) {
child = child.getResolvedElementDeclaration();
if (child.isElementDeclarationReference()) {
child = child.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
/** Returns the name of the element represented by the particle as a QName. */
public static QName getParticleName(XSDParticle particle) {
XSDElementDeclaration content = (XSDElementDeclaration) particle.getContent();
if (content.isElementDeclarationReference()) {
content = content.getResolvedElementDeclaration();
}
return new QName(content.getTargetNamespace(), content.getName());
}
代码示例来源:origin: geotools/geotools
/**
* Returns the particle for an element declaration that is part of a type.
*
* @param type The type definition.
* @param name The naem of the child element declaration.
* @param includeParents Flag to control wether parent types are included.
* @return The particle representing the element declaration, or <code>null</code> if it could
* not be found.
*/
public static final XSDParticle getChildElementParticle(
XSDTypeDefinition type, String name, boolean includeParents) {
List particles = getChildElementParticles(type, includeParents);
for (Iterator p = particles.iterator(); p.hasNext(); ) {
XSDParticle particle = (XSDParticle) p.next();
XSDElementDeclaration element = (XSDElementDeclaration) particle.getContent();
if (element.isElementDeclarationReference()) {
element.getResolvedElementDeclaration();
}
if (name.equals(element.getName())) {
return particle;
}
}
return null;
}
代码示例来源:origin: geotools/geotools
public void visit(XSDParticle particle) {
XSDElementDeclaration decl = (XSDElementDeclaration) particle.getContent();
if (decl.isElementDeclarationReference()) {
decl = decl.getResolvedElementDeclaration();
}
if (decl == fElement) {
if (particle.isSetMinOccurs()) {
minOccurs.add(Integer.valueOf(particle.getMinOccurs()));
} else if (particle.getContainer() instanceof XSDModelGroup
&& particle.getContainer().getContainer()
instanceof XSDParticle) {
particle = (XSDParticle) particle.getContainer().getContainer();
minOccurs.add(Integer.valueOf(particle.getMinOccurs()));
} else {
minOccurs.add(1);
}
}
}
};
代码示例来源:origin: geotools/geotools
public void visit(XSDParticle particle) {
XSDElementDeclaration decl = (XSDElementDeclaration) particle.getContent();
if (decl.isElementDeclarationReference()) {
decl = decl.getResolvedElementDeclaration();
}
if (decl == fElement) {
if (particle.isSetMaxOccurs()) {
maxOccurs.add(Integer.valueOf(particle.getMaxOccurs()));
} else if (particle.getContainer() instanceof XSDModelGroup
&& particle.getContainer().getContainer()
instanceof XSDParticle) {
particle = (XSDParticle) particle.getContainer().getContainer();
maxOccurs.add(Integer.valueOf(particle.getMaxOccurs()));
} else {
maxOccurs.add(1);
}
}
}
};
代码示例来源:origin: geotools/geotools
if ( element.isElementDeclarationReference() )
continue;
代码示例来源:origin: geotools/geotools
@Override
public Object apply(Object particle) {
XSDElementDeclaration attr =
(XSDElementDeclaration)
((XSDParticle)
particle)
.getContent();
if (attr
.isElementDeclarationReference()) {
attr =
attr
.getResolvedElementDeclaration();
}
return new NameImpl(
attr.getTargetNamespace(),
attr.getName());
}
})
代码示例来源:origin: geotools/geotools
XSDElementDeclaration attribute = (XSDElementDeclaration) particle.getContent();
if (attribute.isElementDeclarationReference()) {
attribute = attribute.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDElementDeclaration child = (XSDElementDeclaration) particle.getContent();
if (child.isElementDeclarationReference()) {
child = child.getResolvedElementDeclaration();
XSDParticle particle = (XSDParticle) p.next();
XSDElementDeclaration el = (XSDElementDeclaration) particle.getContent();
if (el.isElementDeclarationReference()) {
el = el.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDParticle particle = (XSDParticle) o[0];
XSDElementDeclaration content = (XSDElementDeclaration) particle.getContent();
if (content.isElementDeclarationReference()) {
content = content.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDElementDeclaration child = (XSDElementDeclaration) particle.getContent();
if (child.isElementDeclarationReference()) {
child = child.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDElementDeclaration property = (XSDElementDeclaration) particle.getContent();
if (property.isElementDeclarationReference()) {
property = property.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
if (elemDecl.isElementDeclarationReference()) {
elemDecl = elemDecl.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
Schemas.getChildElementParticles(element.getTypeDefinition(), true)) {
XSDElementDeclaration childElement = (XSDElementDeclaration) childParticle.getContent();
if (childElement.isElementDeclarationReference()) {
childElement = childElement.getResolvedElementDeclaration();
if (childElement
代码示例来源:origin: geotools/geotools
XSDParticle particle = (XSDParticle) itr.next();
XSDElementDeclaration element = (XSDElementDeclaration) particle.getContent();
if (element.isElementDeclarationReference()) {
element = element.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
(XSDElementDeclaration) particle.getContent();
if (element.isElementDeclarationReference()) {
element = element.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDElementDeclaration attribute = (XSDElementDeclaration) particle.getContent();
if (attribute.isElementDeclarationReference()) {
attribute = attribute.getResolvedElementDeclaration();
XSDElementDeclaration attribute2 =
(XSDElementDeclaration) particle2.getContent();
if (attribute2.isElementDeclarationReference()) {
attribute2 = attribute2.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
if (elemDecl.isElementDeclarationReference()) {
elemDecl = elemDecl.getResolvedElementDeclaration();
if (elemDecl.isElementDeclarationReference()) {
elemDecl = elemDecl.getResolvedElementDeclaration();
代码示例来源:origin: geotools/geotools
XSDElementDeclaration element = (XSDElementDeclaration) particle
.getContent();
if (element.isElementDeclarationReference()) {
element = element.getResolvedElementDeclaration();
内容来源于网络,如有侵权,请联系作者删除!