本文整理匯總了Java中com.intellij.xml.impl.schema.SchemaNSDescriptor類的典型用法代碼示例。如果您正苦於以下問題:Java SchemaNSDescriptor類的具體用法?Java SchemaNSDescriptor怎麽用?Java SchemaNSDescriptor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SchemaNSDescriptor類屬於com.intellij.xml.impl.schema包,在下文中一共展示了SchemaNSDescriptor類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: contributeMetaData
import com.intellij.xml.impl.schema.SchemaNSDescriptor; //導入依賴的package包/類
@Override
public void contributeMetaData(final MetaDataRegistrar registrar)
{
{
registrar.registerMetaData(new AndFilter(new NamespaceFilter(XmlUtil.SCHEMA_URIS), new ClassFilter(XmlDocument.class)), SchemaNSDescriptor.class);
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")), SchemaNSDescriptor.class);
}
{
registrar.registerMetaData(new OrFilter(new AndFilter(new ContentFilter(new OrFilter(new ClassFilter(XmlElementDecl.class), new ClassFilter(XmlEntityDecl.class), new ClassFilter
(XmlConditionalSection.class), new ClassFilter(XmlEntityRef.class))), new ClassFilter(XmlDocument.class)), new ClassFilter(XmlMarkupDecl.class)), XmlNSDescriptorImpl.class);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")), XmlElementDescriptorImpl.class);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")), XmlAttributeDescriptorImpl.class);
}
{
registrar.registerMetaData(new ClassFilter(XmlElementDecl.class), com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class);
}
{
registrar.registerMetaData(new ClassFilter(XmlAttributeDecl.class), com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class);
}
{
registrar.registerMetaData(new AndFilter(new ClassFilter(XmlDocument.class), new TargetNamespaceFilter(XmlUtil.XHTML_URI), new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
RelaxedHtmlFromSchemaNSDescriptor.class);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType", "simpleType", "group", "attributeGroup")),
NamedObjectDescriptor.class);
}
}
示例2: contributeMetaData
import com.intellij.xml.impl.schema.SchemaNSDescriptor; //導入依賴的package包/類
@Override
public void contributeMetaData(final MetaDataRegistrar registrar) {
{
registrar.registerMetaData(
new AndFilter(
new NamespaceFilter(XmlUtil.SCHEMA_URIS),
new ClassFilter(XmlDocument.class)
),
SchemaNSDescriptor.class
);
registrar.registerMetaData(
new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")),
SchemaNSDescriptor.class
);
}
{
registrar.registerMetaData(
new OrFilter(
new AndFilter(
new ContentFilter(
new OrFilter(
new ClassFilter(XmlElementDecl.class),
new ClassFilter(XmlEntityDecl.class),
new ClassFilter(XmlConditionalSection.class),
new ClassFilter(XmlEntityRef.class)
)
),
new ClassFilter(XmlDocument.class)
),
new ClassFilter(XmlMarkupDecl.class)
),
XmlNSDescriptorImpl.class
);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")),
XmlElementDescriptorImpl.class);
}
{
registrar.registerMetaData(
new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")),
XmlAttributeDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new ClassFilter(XmlElementDecl.class),
com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new ClassFilter(XmlAttributeDecl.class),
com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new AndFilter(
new ClassFilter(XmlDocument.class),
new TargetNamespaceFilter(XmlUtil.XHTML_URI),
new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
RelaxedHtmlFromSchemaNSDescriptor.class
);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType",
"simpleType", "group",
"attributeGroup")),
NamedObjectDescriptor.class);
}
}
示例3: contributeMetaData
import com.intellij.xml.impl.schema.SchemaNSDescriptor; //導入依賴的package包/類
public void contributeMetaData(final MetaDataRegistrar registrar) {
{
registrar.registerMetaData(
new AndFilter(
new NamespaceFilter(XmlUtil.SCHEMA_URIS),
new ClassFilter(XmlDocument.class)
),
SchemaNSDescriptor.class
);
registrar.registerMetaData(
new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")),
SchemaNSDescriptor.class
);
}
{
registrar.registerMetaData(
new OrFilter(
new AndFilter(
new ContentFilter(
new OrFilter(
new ClassFilter(XmlElementDecl.class),
new ClassFilter(XmlEntityDecl.class),
new ClassFilter(XmlConditionalSection.class),
new ClassFilter(XmlEntityRef.class)
)
),
new ClassFilter(XmlDocument.class)
),
new ClassFilter(XmlMarkupDecl.class)
),
XmlNSDescriptorImpl.class
);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")),
XmlElementDescriptorImpl.class);
}
{
registrar.registerMetaData(
new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")),
XmlAttributeDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new ClassFilter(XmlElementDecl.class),
com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new ClassFilter(XmlAttributeDecl.class),
com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class
);
}
{
registrar.registerMetaData(
new AndFilter(
new ClassFilter(XmlDocument.class),
new TargetNamespaceFilter(XmlUtil.XHTML_URI),
new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
RelaxedHtmlFromSchemaNSDescriptor.class
);
}
{
registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType",
"simpleType", "group",
"attributeGroup")),
NamedObjectDescriptor.class);
}
}