本文整理了Java中org.eclipse.xsd.XSDElementDeclaration.getAnonymousTypeDefinition()
方法的一些代码示例,展示了XSDElementDeclaration.getAnonymousTypeDefinition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDElementDeclaration.getAnonymousTypeDefinition()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDElementDeclaration
类名称:XSDElementDeclaration
方法名:getAnonymousTypeDefinition
[英]Returns the value of the 'Anonymous Type Definition' containment reference.
This concrete reference represents a type definition defined within the body of an element element.
[中]返回“匿名类型定义”包含引用的值。
这个具体的引用表示在{$0$}元素体中定义的类型定义。
代码示例来源:origin: geotools/geotools
if ( element.getAnonymousTypeDefinition() != null ) {
element.getAnonymousTypeDefinition().setName( "_" + element.getName() );
anonymous.add( element.getAnonymousTypeDefinition() );
continue;
if ( element.getAnonymousTypeDefinition() != null ) {
element.getAnonymousTypeDefinition().setName( type.getName() + "_" + element.getName() );
anonymous.add( element.getAnonymousTypeDefinition() );
代码示例来源:origin: geotools/geotools
XSDElementDeclaration element = (XSDElementDeclaration) e.next();
if (type.equals(element.getAnonymousTypeDefinition())) {
代码示例来源:origin: geotools/geotools
typeDefinition = elemDecl.getAnonymousTypeDefinition();
if (typeDefinition == null) {
elemDecl = elemDecl.getResolvedElementDeclaration();
typeDefinition = elemDecl.getAnonymousTypeDefinition();
if (typeDefinition == null) {
typeDefinition = elemDecl.getTypeDefinition();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void visitElementDeclaration(XSDElementDeclaration element)
{
if (element.isElementDeclarationReference())
{
}
else if (element.getAnonymousTypeDefinition() != null)
{
visitTypeDefinition(element.getAnonymousTypeDefinition());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public static XSDSimpleTypeDefinition getAnonymousSimpleType(XSDFeature input, XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
XSDSimpleTypeDefinition anonymousSimpleType = null;
XSDTypeDefinition localType = null;
if (input instanceof XSDElementDeclaration)
{
localType = ((XSDElementDeclaration) input).getAnonymousTypeDefinition();
}
else if (input instanceof XSDAttributeDeclaration)
{
localType = ((XSDAttributeDeclaration) input).getAnonymousTypeDefinition();
}
if (localType instanceof XSDSimpleTypeDefinition)
{
anonymousSimpleType = (XSDSimpleTypeDefinition) localType;
}
return anonymousSimpleType;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void visitXSDElementDeclaration(XSDElementDeclaration xsdElementDeclaration)
{
indent += 2;
XSDTypeDefinition td = xsdElementDeclaration.getTypeDefinition();
if (td == null)
{
td = xsdElementDeclaration.getAnonymousTypeDefinition();
}
visitXSDObject(td);
indent -= 2;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void visitElementDeclaration(XSDElementDeclaration element)
{
if (element.isElementDeclarationReference())
{
visitElementDeclaration(element.getResolvedElementDeclaration());
}
else if (element.getAnonymousTypeDefinition() != null)
{
visitTypeDefinition(element.getAnonymousTypeDefinition());
}
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
if (elem.getAnonymousTypeDefinition() != null)
typedef = elem.getAnonymousTypeDefinition();
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public String getText(Object object)
{
XSDElementDeclaration xsdElementDeclaration = ((XSDElementDeclaration)object);
XSDElementDeclaration resolvedElementDeclaration = xsdElementDeclaration.getResolvedElementDeclaration();
String name =
xsdElementDeclaration != resolvedElementDeclaration ?
xsdElementDeclaration.getQName() :
xsdElementDeclaration.getName();
StringBuffer result = new StringBuffer();
if (name == null)
{
result.append(XSDEditPlugin.INSTANCE.getString("_UI_Absent_label"));
}
else
{
result.append(name);
}
if (resolvedElementDeclaration.getAnonymousTypeDefinition() == null && resolvedElementDeclaration.getTypeDefinition() != null)
{
result.append(" : ");
result.append(resolvedElementDeclaration.getTypeDefinition().getQName(xsdElementDeclaration));
}
return result.toString();
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
if (elem.getAnonymousTypeDefinition() != null)
typedef = elem.getAnonymousTypeDefinition();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
protected boolean canEnable(XSDConcreteComponent selectedObject) {
selectedComponent = null;
if (selectedObject instanceof XSDNamedComponent) {
selectedComponent = (XSDNamedComponent) selectedObject;
// if it's element reference, then this action is not appropriate
if (selectedComponent instanceof XSDElementDeclaration) {
XSDElementDeclaration element = (XSDElementDeclaration) selectedComponent;
if (element.isElementDeclarationReference()) {
selectedComponent = null;
}
}
if(selectedComponent instanceof XSDTypeDefinition){
XSDTypeDefinition type = (XSDTypeDefinition) selectedComponent;
XSDConcreteComponent parent = type.getContainer();
if (parent instanceof XSDElementDeclaration) {
XSDElementDeclaration element = (XSDElementDeclaration) parent;
if(element.getAnonymousTypeDefinition().equals(type)){
selectedComponent = null;
}
}
else if(parent instanceof XSDAttributeDeclaration) {
XSDAttributeDeclaration element = (XSDAttributeDeclaration) parent;
if(element.getAnonymousTypeDefinition().equals(type)){
selectedComponent = null;
}
}
}
}
return canRun();
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
type = xsdElementDeclaration.getAnonymousTypeDefinition();
if (type == null)
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
if (elementDeclaration.getAnonymousTypeDefinition() == null)
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
if (ed.getTypeDefinition() != null)
if (ed.getAnonymousTypeDefinition() == null)
else if (ed.getAnonymousTypeDefinition() == null)
owner = td;
else if (ed.getAnonymousTypeDefinition() instanceof XSDComplexTypeDefinition)
owner = ed.getAnonymousTypeDefinition();
else if (ed.getAnonymousTypeDefinition() instanceof XSDSimpleTypeDefinition)
代码示例来源:origin: org.geotools/gt2-xml-core
XSDElementDeclaration element = (XSDElementDeclaration) e.next();
if (type.equals(element.getAnonymousTypeDefinition())) {
代码示例来源:origin: org.geotools/gt2-xml-xsd
if ( type.equals( element.getAnonymousTypeDefinition() ) ) {
代码示例来源:origin: org.geotools.xsd/gt-core
XSDElementDeclaration element = (XSDElementDeclaration) e.next();
if (type.equals(element.getAnonymousTypeDefinition())) {
代码示例来源:origin: org.geotools/gt-app-schema
typeDefinition = elemDecl.getAnonymousTypeDefinition();
if (typeDefinition == null) {
elemDecl = elemDecl.getResolvedElementDeclaration();
typeDefinition = elemDecl.getAnonymousTypeDefinition();
if (typeDefinition == null) {
typeDefinition = elemDecl.getTypeDefinition();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
boolean isAnonymous = xsdElementDeclaration.getAnonymousTypeDefinition() != null;
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
anonymousTypeDefinition = xsdElementDeclaration.getResolvedElementDeclaration().getAnonymousTypeDefinition();
内容来源于网络,如有侵权,请联系作者删除!