本文整理了Java中org.eclipse.xsd.XSDAttributeDeclaration.getName()
方法的一些代码示例,展示了XSDAttributeDeclaration.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDAttributeDeclaration.getName()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDAttributeDeclaration
类名称:XSDAttributeDeclaration
方法名:getName
暂无
代码示例来源:origin: geotools/geotools
public AttributeEncodeExecutor(
Object object, XSDAttributeDeclaration attribute, Document document, Logger logger) {
this.object = object;
this.attribute = attribute;
this.document = document;
this.logger = logger;
encoding = document.createAttributeNS(attribute.getTargetNamespace(), attribute.getName());
}
代码示例来源:origin: geotools/geotools
protected void buildAttriubuteIndex() {
attributeIndex = new HashMap();
for (int i = 0; i < schemas.length; i++) {
XSDSchema schema = schemas[i];
for (Iterator a = schema.getAttributeDeclarations().iterator(); a.hasNext(); ) {
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) a.next();
QName qName = new QName(attribute.getTargetNamespace(), attribute.getName());
attributeIndex.put(qName, attribute);
}
}
}
代码示例来源:origin: geotools/geotools
@Override
public boolean isIdentifiable(XSDComplexTypeDefinition typeDefinition) {
List attributeUses = typeDefinition.getAttributeUses();
final String idAttName = getId().getLocalPart();
for (Iterator it = attributeUses.iterator(); it.hasNext(); ) {
XSDAttributeUse use = (XSDAttributeUse) it.next();
XSDAttributeUseCategory useCategory = use.getUse();
XSDAttributeDeclaration idAtt = use.getAttributeDeclaration();
String targetNamespace = idAtt.getTargetNamespace();
String name = idAtt.getName();
if (getNameSpace().equals(targetNamespace) && idAttName.equals(name)) {
if (XSDAttributeUseCategory.REQUIRED_LITERAL.equals(useCategory)) {
return true;
}
}
}
return false;
}
代码示例来源:origin: geotools/geotools
for (Iterator itr = attributes.iterator(); itr.hasNext();) {
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration)itr.next();
if (attribute.getName() == null) continue;
if (!ns.equals(attribute.getTargetNamespace())) continue;
stringBuffer.append(attribute.getName());
stringBuffer.append(TEXT_23);
stringBuffer.append(ns);
stringBuffer.append(TEXT_24);
stringBuffer.append(attribute.getName());
stringBuffer.append(TEXT_25);
代码示例来源:origin: geotools/geotools
String msg =
"Encode failed for "
+ attribute.getName()
+ ". Cause: "
+ t.getLocalizedMessage();
代码示例来源:origin: geotools/geotools
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) a.next();
if ( attribute.getAnonymousTypeDefinition() != null ) {
attribute.getAnonymousTypeDefinition().setName( "_" + attribute.getName() );
anonymous.add( attribute.getAnonymousTypeDefinition() );
代码示例来源:origin: geotools/geotools
String local = attribute.getName();
代码示例来源:origin: geotools/geotools
XSDAttributeDeclaration ad = (XSDAttributeDeclaration) a.next();
if (Utilities.equals(ad.getTargetNamespace(), attribute.getTargetNamespace())
&& Utilities.equals(ad.getName(), attribute.getName())) {
type = ad.getTypeDefinition();
break;
if ( "uom".equals( attribute.getName() ) ) {
System.out.println();
代码示例来源:origin: geotools/geotools
getXmlAttributeType(),
null,
new NameImpl(null, "@" + att.getName()),
0,
1,
代码示例来源:origin: geotools/geotools
AttributeInstance att = new AttributeImpl(decl);
att.setNamespace(decl.getTargetNamespace());
att.setName(decl.getName());
att.setText(attributes.getValue(i));
代码示例来源:origin: geotools/geotools
if (Utilities.equals(ad.getTargetNamespace(),
attribute.getTargetNamespace())
&& Utilities.equals(ad.getName(), attribute.getName())) {
type = ad.getTypeDefinition();
break;
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public String getName()
{
XSDAttributeDeclaration resolvedAttributeDeclaration = getResolvedXSDAttributeDeclaration();
String name = resolvedAttributeDeclaration.getName();
return (name == null) ? "" : name; //$NON-NLS-1$
}
代码示例来源:origin: org.geotools/gt2-xml-xsd
public AttributeEncodeExecutor(
Object object, XSDAttributeDeclaration attribute, Document document, Logger logger
) {
this.object = object;
this.attribute = attribute;
this.document = document;
this.logger = logger;
encoding = document
.createAttributeNS(attribute.getTargetNamespace(), attribute.getName());
}
代码示例来源:origin: org.geotools.xsd/gt-core
public AttributeEncodeExecutor(Object object, XSDAttributeDeclaration attribute,
Document document, Logger logger) {
this.object = object;
this.attribute = attribute;
this.document = document;
this.logger = logger;
encoding = document.createAttributeNS(attribute.getTargetNamespace(), attribute.getName());
}
代码示例来源:origin: org.geotools/gt2-xml-core
public AttributeEncodeExecutor(Object object, XSDAttributeDeclaration attribute,
Document document, Logger logger) {
this.object = object;
this.attribute = attribute;
this.document = document;
this.logger = logger;
encoding = document.createAttributeNS(attribute.getTargetNamespace(), attribute.getName());
}
代码示例来源:origin: org.geotools/gt2-xml-core
protected void buildAttriubuteIndex() {
attributeIndex = new HashMap();
for (int i = 0; i < schemas.length; i++) {
XSDSchema schema = schemas[i];
for (Iterator a = schema.getAttributeDeclarations().iterator(); a.hasNext();) {
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) a.next();
QName qName = new QName(attribute.getTargetNamespace(), attribute.getName());
attributeIndex.put(qName, attribute);
}
}
}
代码示例来源:origin: org.geotools.xsd/gt-core
protected void buildAttriubuteIndex() {
attributeIndex = new HashMap();
for (int i = 0; i < schemas.length; i++) {
XSDSchema schema = schemas[i];
for (Iterator a = schema.getAttributeDeclarations().iterator(); a.hasNext();) {
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) a.next();
QName qName = new QName(attribute.getTargetNamespace(), attribute.getName());
attributeIndex.put(qName, attribute);
}
}
}
代码示例来源:origin: org.geotools/gt2-xml-xsd
protected void buildAttriubuteIndex() {
attributeIndex = new HashMap();
for (int i = 0; i < schemas.length; i++) {
XSDSchema schema = schemas[i];
for (Iterator a = schema.getAttributeDeclarations().iterator();
a.hasNext();) {
XSDAttributeDeclaration attribute = (XSDAttributeDeclaration) a
.next();
QName qName = new QName(attribute.getTargetNamespace(),
attribute.getName());
attributeIndex.put(qName, attribute);
}
}
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public String getText(Object object)
{
XSDAttributeDeclaration xsdAttributeDeclaration = ((XSDAttributeDeclaration)object);
XSDAttributeDeclaration resolvedXSDAttributeDeclaration = xsdAttributeDeclaration.getResolvedAttributeDeclaration();
String result = resolvedXSDAttributeDeclaration.getName();
return result == null ? XSDEditPlugin.INSTANCE.getString("_UI_Absent_label") : result;
}
};
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public String getText(Object element)
{
if (element instanceof XSDElementDeclaration)
return ((XSDElementDeclaration) element).getName();
if (element instanceof XSDAttributeDeclaration )
return ((XSDAttributeDeclaration) element).getName();
return super.getText(element);
}
}
内容来源于网络,如有侵权,请联系作者删除!