本文整理了Java中org.eclipse.xsd.XSDAttributeDeclaration.setLexicalValue()
方法的一些代码示例,展示了XSDAttributeDeclaration.setLexicalValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDAttributeDeclaration.setLexicalValue()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDAttributeDeclaration
类名称:XSDAttributeDeclaration
方法名:setLexicalValue
暂无
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
protected void setDefaultValue(EAttribute attribute, XSDAttributeDeclaration attrDecl)
{
if (attribute.getDefaultValueLiteral() != null)
{
attrDecl.setConstraint(XSDConstraint.DEFAULT_LITERAL);
attrDecl.setLexicalValue(attribute.getDefaultValueLiteral());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
protected void setDefaultValue(EAttribute attribute, XSDAttributeDeclaration attrDecl)
{
if (attribute.getDefaultValueLiteral() != null)
{
attrDecl.setConstraint(XSDConstraint.DEFAULT_LITERAL);
attrDecl.setLexicalValue(attribute.getDefaultValueLiteral());
}
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
(prototypeSchema.resolveSimpleTypeDefinition(/*{@link #*/someOtherSchemaURI/*}*/, "someOtherTypeDefinition"));
simpleAttributeDeclaration./*{@link XSDAttributeDeclaration#setConstraint */setConstraint/*}*/(/*{@link */XSDConstraint/*}*/.DEFAULT_LITERAL);
simpleAttributeDeclaration./*{@link XSDAttributeDeclaration#setLexicalValue */setLexicalValue/*}*/("defaultValue");
代码示例来源:origin: org.eclipse/org.eclipse.xsd
(prototypeSchema.resolveSimpleTypeDefinition(/*{@link #*/someOtherSchemaURI/*}*/, "someOtherTypeDefinition"));
simpleAttributeDeclaration./*{@link XSDAttributeDeclaration#setConstraint */setConstraint/*}*/(/*{@link */XSDConstraint/*}*/.DEFAULT_LITERAL);
simpleAttributeDeclaration./*{@link XSDAttributeDeclaration#setLexicalValue */setLexicalValue/*}*/("defaultValue");
代码示例来源:origin: org.eclipse/org.eclipse.xsd
protected XSDAttributeDeclaration buildGlobalAttribute(XSDSchema xsdSchema, EStructuralFeature eStructuralFeature)
{
XSDAttributeDeclaration xsdAttributeDeclaration = XSDFactory.eINSTANCE.createXSDAttributeDeclaration();
xsdAttributeDeclaration.setName(extendedMetaData.getName(eStructuralFeature));
XSDSimpleTypeDefinition xsdSimpleTypeDefinition = xsdSchema.resolveSimpleTypeDefinitionURI(getURI(eStructuralFeature.getEType()));
handleImport(xsdSchema, xsdSimpleTypeDefinition);
xsdAttributeDeclaration.setTypeDefinition(xsdSimpleTypeDefinition);
String defaultValue = eStructuralFeature.getDefaultValueLiteral();
if (defaultValue != null)
{
xsdAttributeDeclaration.setConstraint(XSDConstraint.DEFAULT_LITERAL);
xsdAttributeDeclaration.setLexicalValue(defaultValue);
}
xsdSchema.getContents().add(xsdAttributeDeclaration);
map(xsdAttributeDeclaration, eStructuralFeature);
if (eStructuralFeature.eIsSet(EcorePackage.Literals.ETYPED_ELEMENT__EGENERIC_TYPE))
{
createEcoreAnnotation(xsdAttributeDeclaration, "type", getGenericType(xsdSchema, eStructuralFeature.getEGenericType()));
}
buildAnnotations(xsdAttributeDeclaration, eStructuralFeature);
return xsdAttributeDeclaration;
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
protected XSDAttributeDeclaration buildGlobalAttribute(XSDSchema xsdSchema, EStructuralFeature eStructuralFeature)
{
XSDAttributeDeclaration xsdAttributeDeclaration = XSDFactory.eINSTANCE.createXSDAttributeDeclaration();
xsdAttributeDeclaration.setName(extendedMetaData.getName(eStructuralFeature));
XSDSimpleTypeDefinition xsdSimpleTypeDefinition = xsdSchema.resolveSimpleTypeDefinitionURI(getURI(eStructuralFeature.getEType()));
handleImport(xsdSchema, xsdSimpleTypeDefinition);
xsdAttributeDeclaration.setTypeDefinition(xsdSimpleTypeDefinition);
String defaultValue = eStructuralFeature.getDefaultValueLiteral();
if (defaultValue != null)
{
xsdAttributeDeclaration.setConstraint(XSDConstraint.DEFAULT_LITERAL);
xsdAttributeDeclaration.setLexicalValue(transformDefaultValue(xsdAttributeDeclaration.getTypeDefinition(), defaultValue));
}
xsdSchema.getContents().add(xsdAttributeDeclaration);
map(xsdAttributeDeclaration, eStructuralFeature);
if (eStructuralFeature.eIsSet(EcorePackage.Literals.ETYPED_ELEMENT__EGENERIC_TYPE))
{
createEcoreAnnotation(xsdAttributeDeclaration, "type", getGenericType(xsdSchema, eStructuralFeature.getEGenericType()));
}
buildAnnotations(xsdAttributeDeclaration, eStructuralFeature);
return xsdAttributeDeclaration;
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
xsdAttributeDeclaration.setLexicalValue(transformDefaultValue(xsdAttributeDeclaration.getTypeDefinition(), defaultValue));
代码示例来源:origin: org.eclipse/org.eclipse.xsd
xsdAttributeDeclaration.setLexicalValue(defaultValue);
内容来源于网络,如有侵权,请联系作者删除!