本文整理了Java中org.eclipse.xsd.XSDInclude
类的一些代码示例,展示了XSDInclude
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDInclude
类的具体详情如下:
包路径:org.eclipse.xsd.XSDInclude
类名称:XSDInclude
[英]A representation of the model object 'Include'.
The following features are supported:
代码示例来源:origin: geotools/geotools
XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
includes.add(include);
added.add(include.getSchemaLocation());
if (include.getIncorporatedSchema() != null) {
queue.addLast(include.getIncorporatedSchema());
} else {
if (LOGGER.isLoggable(Level.FINE)) {
代码示例来源:origin: geotools/geotools
file = findSchemaFile( include.getSchemaLocation() );
if( include.getSchema() != null ) {
namespaces.add(include.getSchema().getTargetNamespace());
logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
代码示例来源:origin: geotools/geotools
file = findSchemaFile( include.getSchemaLocation() );
logger.log( Level.SEVERE, "Could not find: " + include.getSchemaLocation() + " to copy." );
代码示例来源:origin: org.eclipse/org.eclipse.xsd
public XSDSchema included(XSDInclude xsdInclude)
XSDSchema includingSchema = xsdInclude.getSchema();
xsdInclude.setResolvedSchema(this);
getReferencingDirectives().add(xsdInclude);
if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))
代码示例来源:origin: org.geoserver/gs-wfs
/**
* Add include statement to schema.
*
* @param schema Output schema
* @param factory XSD factory used to produce schema
* @param schemaLocation The schema location to be included
*/
private void addInclude(XSDSchema schema, XSDFactory factory, String schemaLocation) {
XSDInclude xsdInclude = factory.createXSDInclude();
xsdInclude.setSchemaLocation(schemaLocation);
schema.getContents().add(xsdInclude);
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
((XSDInclude)component).setAnnotation(xsdAnnotation);
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
xsdAnnotation = xsdComp.getAnnotation();
if (createIfNotExist && xsdAnnotation == null)
xsdComp.setAnnotation(xsdAnnotation);
代码示例来源:origin: org.eclipse/org.eclipse.xsd
public static XSDInclude createInclude(Node node)
{
if (XSDConstants.nodeType(node) == XSDConstants.INCLUDE_ELEMENT)
{
XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
xsdInclude.setElement((Element)node);
return xsdInclude;
}
return null;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public String getText(Object object)
{
XSDInclude xsdInclude = ((XSDInclude)object);
String result = xsdInclude.getSchemaLocation();
return result == null ? "" : result;
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
public XSDSchema included(XSDInclude xsdInclude)
XSDSchema includingSchema = xsdInclude.getSchema();
xsdInclude.setResolvedSchema(this);
getReferencingDirectives().add(xsdInclude);
if (getTargetNamespace() == null || getTargetNamespace().equals(includingSchema.getTargetNamespace()))
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void execute()
{
try
{
super.execute();
// Add this after if we don't have a DOM Node yet
beginRecording(xsdSchema.getElement());
XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
xsdInclude.setSchemaLocation(""); //$NON-NLS-1$
xsdSchema.getContents().add(findNextPositionToInsert(), xsdInclude);
addedXSDConcreteComponent = xsdInclude;
formatChild(xsdSchema.getElement());
}
finally
{
endRecording();
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
((XSDInclude)component).setAnnotation(xsdAnnotation);
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
public static XSDInclude createInclude(Node node)
{
if (XSDConstants.nodeType(node) == XSDConstants.INCLUDE_ELEMENT)
{
XSDInclude xsdInclude = XSDFactory.eINSTANCE.createXSDInclude();
xsdInclude.setElement((Element)node);
return xsdInclude;
}
return null;
}
代码示例来源:origin: org.geotools/gt2-xml-core
XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
includes.add(include);
added.add(include.getSchemaLocation());
if (include.getIncorporatedSchema() != null) {
queue.addLast(include.getIncorporatedSchema());
} else {
if (LOGGER.isLoggable(Level.FINE)) {
代码示例来源:origin: org.eclipse/org.eclipse.xsd
i.remove();
XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine();
xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation());
i.add(xsdRedefineReplaced);
redefinedSchema.isReconciling = false;
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
i.setSchemaLocation("");
newChildDescriptors.add(createChildParameter(schemaContents, i));
代码示例来源:origin: org.geotools/gt2-xml-xsd
XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
XSDSchema incorporated = include.getIncorporatedSchema();
if ( incorporated != null ) {
includes.add(include);
added.add(include.getSchemaLocation());
queue.addLast( incorporated );
String msg = "Could not find included schema: " + include.getSchemaLocation();
LOGGER.warning(msg);
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
i.remove();
XSDRedefine xsdRedefineReplaced = XSDFactory.eINSTANCE.createXSDRedefine();
xsdRedefineReplaced.setSchemaLocation(((XSDInclude)component).getSchemaLocation());
i.add(xsdRedefineReplaced);
redefinedSchema.isReconciling = false;
代码示例来源:origin: org.geotools.xsd/gt-core
XSDInclude include = (XSDInclude) content;
if (!added.contains(include.getSchemaLocation())) {
includes.add(include);
added.add(include.getSchemaLocation());
if (include.getIncorporatedSchema() != null) {
queue.addLast(include.getIncorporatedSchema());
} else {
if (LOGGER.isLoggable(Level.FINE)) {
内容来源于网络,如有侵权,请联系作者删除!