private QualifiedName stringToQualifiedName(String attr1) { return namespace.stringToQualifiedName(attr1,pFactory); }
private QualifiedName stringToQualifiedName(String attr1) { return namespace.stringToQualifiedName(attr1,pFactory); }
private Collection<QualifiedName> qualifiedNames(String attributeName, JsonObject attributeMap) { List<QualifiedName> results = new ArrayList<QualifiedName>(); List<JsonElement> elements = popMultiValAttribute(attributeName, attributeMap); for (JsonElement element : elements) { results.add(currentNamespace.stringToQualifiedName(element.getAsString(),pf)); } return results; }
private QualifiedName anyRef(String attributeName, JsonObject attributeMap) { if (attributeMap.has(attributeName)) return currentNamespace.stringToQualifiedName(popString(attributeMap, attributeName), pf); else return null; }
private QualifiedName qualifiedName(String attributeName, JsonObject attributeMap) { return currentNamespace.stringToQualifiedName(popString(attributeMap, attributeName), pf); }
private QualifiedName qualifiedName(String attributeName, JsonObject attributeMap) { return currentNamespace.stringToQualifiedName(popString(attributeMap, attributeName), pf); }
private Collection<QualifiedName> qualifiedNames(String attributeName, JsonObject attributeMap) { List<QualifiedName> results = new ArrayList<QualifiedName>(); List<JsonElement> elements = popMultiValAttribute(attributeName, attributeMap); for (JsonElement element : elements) { results.add(currentNamespace.stringToQualifiedName(element.getAsString(),pf)); } return results; }
private QualifiedName anyRef(String attributeName, JsonObject attributeMap) { if (attributeMap.has(attributeName)) return currentNamespace.stringToQualifiedName(popString(attributeMap, attributeName), pf); else return null; }
public Entry decodeDictionaryEntry(QualifiedName datatype, String entryKey, JsonElement entryValue) { Key kk; if (datatype.equals(name.PROV_QUALIFIED_NAME)) { kk=(Key) pf.newAttribute(name.PROV_KEY, currentNamespace.stringToQualifiedName(entryKey,pf), datatype); } else { kk=(Key) pf.newAttribute(name.PROV_KEY, entryKey, datatype); } Entry pair = pf.newEntry(kk, currentNamespace.stringToQualifiedName(entryValue.getAsString(), pf)); return pair; }
public Entry decodeDictionaryEntry(QualifiedName datatype, String entryKey, JsonElement entryValue) { Key kk; if (datatype.equals(name.PROV_QUALIFIED_NAME)) { kk=(Key) pf.newAttribute(name.PROV_KEY, currentNamespace.stringToQualifiedName(entryKey,pf), datatype); } else { kk=(Key) pf.newAttribute(name.PROV_KEY, entryKey, datatype); } Entry pair = pf.newEntry(kk, currentNamespace.stringToQualifiedName(entryValue.getAsString(), pf)); return pair; }
name.PROV_KEY), currentNamespace.stringToQualifiedName(this.popString(item, "$"),pf)); results.add(pair); QualifiedName datatype = currentNamespace.stringToQualifiedName(keyDatatype,pf); for (Map.Entry<String, JsonElement> entry : dictionary.entrySet()) { String entryKey = entry.getKey();
name.PROV_KEY), currentNamespace.stringToQualifiedName(this.popString(item, "$"),pf)); results.add(pair); QualifiedName datatype = currentNamespace.stringToQualifiedName(keyDatatype,pf); for (Map.Entry<String, JsonElement> entry : dictionary.entrySet()) { String entryKey = entry.getKey();
if (tmp==null) { if (parent!=null) { return parent.stringToQualifiedName(id, pFactory); } else { throw new QualifiedNameException("Namespace.stringToQualifiedName(): Null namespace for " + id + " namespace " + this);
return new Object[]{ns.stringToQualifiedName(id,pf),pf.getName().PROV_QUALIFIED_NAME};
return new Object[]{ns.stringToQualifiedName(id,pf),pf.getName().PROV_QUALIFIED_NAME};
if (tmp==null) { if (parent!=null) { return parent.stringToQualifiedName(id, pFactory); } else { throw new QualifiedNameException("Namespace.stringToQualifiedName(): Null namespace for " + id + " namespace " + this);
} else if (struct.has("type")) { String datatypeAsString = struct.get("type").getAsString(); QualifiedName xsdType = currentNamespace.stringToQualifiedName(datatypeAsString, pf); if (xsdType.equals(name.PROV_QUALIFIED_NAME)) { /* we ignore xsdType.equals(name.FOR_XML_XSD_QNAME) */ return pf.newAttribute(elementName, currentNamespace.stringToQualifiedName(value,pf), xsdType); } else { return pf.newAttribute(elementName, value, xsdType);
} else if (struct.has("type")) { String datatypeAsString = struct.get("type").getAsString(); QualifiedName xsdType = currentNamespace.stringToQualifiedName(datatypeAsString, pf); if (xsdType.equals(name.PROV_QUALIFIED_NAME)) { /* we ignore xsdType.equals(name.FOR_XML_XSD_QNAME) */ return pf.newAttribute(elementName, currentNamespace.stringToQualifiedName(value,pf), xsdType); } else { return pf.newAttribute(elementName, value, xsdType);
QualifiedName qualifiedName = namespace.stringToQualifiedName(literal.getDatatype() .stringValue(),pFactory); dataType = qualifiedName.getNamespaceURI() + qualifiedName.getLocalPart(); return namespace.stringToQualifiedName(literal.stringValue(), pFactory); } else if (dataType.equals(NamespacePrefixMapper.XSD_NS + "string")) { return literal.stringValue();
public void addSeed(Document doc, long seed, String name) { Namespace namespace = doc.getNamespace(); QualifiedName qn = namespace.stringToQualifiedName(name, pf); for (StatementOrBundle statement : doc.getStatementOrBundle()) { if (statement instanceof Identifiable) { Identifiable ss = (Identifiable) statement; if ((ss.getId() != null) && (ss.getId().equals(qn))) { namespace.register(TERM_PREFIX, TERM_NS); namespace.addKnownNamespaces(); ((HasOther) ss).getOther() .add(pf.newOther(TERM_NS, "seed", TERM_PREFIX, seed, pf.getName().XSD_LONG)); return; } } } }