Package | Description |
---|---|
org.tanjakostic.jcleancim.experimental.builder.rdfs |
FIXME: This is experimental and absolutely not tested - don't use!
|
org.tanjakostic.jcleancim.experimental.builder.xsd |
The package contains the
ModelBuilderFromProfiles , which can
parse: the CIM profiles in "xsd" format, as
generated with CIMTool. |
org.tanjakostic.jcleancim.xml |
Modifier and Type | Class and Description |
---|---|
class |
XmlNamespace
Common namespaces found in CIM RDF/OWL Schema.
|
Modifier and Type | Field and Description |
---|---|
static XmlNs |
XmlNamespace.cim |
static XmlNs |
XmlNamespace.cims |
static XmlNs |
XmlNamespace.dc |
static XmlNs |
XmlNamespace.msg |
static XmlNs |
XmlNamespace.owl |
static XmlNs |
XmlNamespace.rdf |
static XmlNs |
XmlNamespace.rdfs |
static XmlNs |
XmlNamespace.uml |
static XmlNs |
XmlNamespace.xml |
static XmlNs |
XmlNamespace.xsd
(OWL) Note that the namespace is not read from the schema, but is used to replace CIM
primitive types (Float, String, Integer, Boolean, Decimal, Date, Time, DateTime, Duration)
with a child element such as e.g.,
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<org.w3c.dom.Element> |
XmlElement.getChildrenWithResource(org.w3c.dom.Element parent,
XmlNs ns)
Returns all child elements of
parent that have 'resource' attribute. |
static void |
XmlElement.normaliseToRdf(XmlNs ns,
org.w3c.dom.Element parent)
Peforms several potential modifications:
removes "Package_" substring from 'about' attribute of
parent and 'resource'
attribute of its child, when applicable
prepends the URI of ns to 'about' attribute of parent and
'resource' attribute of all its children, if they use default namespace syntax (i.e., start
with "#")
replaces XML primitive types in children with CIM primitive types
|
Constructor and Description |
---|
XmlTag(XmlNs ns,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<XmlNs> |
Profile.getNamespaces() |
Modifier and Type | Field and Description |
---|---|
static XmlNs |
XmlNs.xsi |
Modifier and Type | Method and Description |
---|---|
XmlNs |
XmlSchemaDOM.getTargetNs() |
XmlNs |
XmlInstanceDOM.getTargetNs() |
XmlNs |
NamespaceCache.getXmlNs(java.lang.String uri)
Returns namespace instance if
uri has been bound to a prefix, null otherwise. |
Modifier and Type | Method and Description |
---|---|
java.util.List<XmlNs> |
NamespaceCache.getAllXmlNs() |
Modifier and Type | Method and Description |
---|---|
static void |
JaxpHelper.addNamespace(org.w3c.dom.Document dom,
XmlNs ns)
Adds the namespace binding definition to DOM
dom (to define multiple namespace
bindings on the root element). |
static javax.xml.xpath.XPathExpression |
JaxpHelper.compileXpath(java.lang.String xpathExpression,
XmlNs... namespaces)
Returns compiled xpath expression that recognises all
namespaces . |
static org.w3c.dom.Document |
JaxpHelper.createDocumentWithRoot(java.lang.String comment,
java.lang.String rootName,
XmlNs ns)
Returns a document with
rootName element. |
static javax.xml.xpath.XPath |
JaxpHelper.createXpath(XmlNs... namespaces)
Returns the xpath instance that recognises all
namespaces . |
static java.util.List<org.w3c.dom.Element> |
JaxpHelper.selectElements(java.lang.String xpathExpression,
java.lang.Object ctx,
XmlNs... namespaces) |
static org.w3c.dom.Node |
JaxpHelper.selectNode(java.lang.String xpathExpression,
java.lang.Object ctx,
XmlNs[] namespaces) |
static java.util.List<org.w3c.dom.Node> |
JaxpHelper.selectNodes(java.lang.String xpathExpression,
java.lang.Object ctx,
XmlNs... namespaces) |
Constructor and Description |
---|
NamespaceCache(XmlNs... nsMappings)
Constructor initialises the cache from non-null, non-empty
nsMappings . |
Copyright 2009-2016 Tatjana (Tanja) Kostic