@Override public void init(XMLStructure parent, XMLCryptoContext context) throws InvalidAlgorithmParameterException { LOG.log(POILogger.DEBUG, "init(parent,context)"); LOG.log(POILogger.DEBUG, "parent java type: " + parent.getClass().getName()); DOMStructure domParent = (DOMStructure) parent; Node parentNode = domParent.getNode(); try { TransformDocument transDoc = TransformDocument.Factory.parse(parentNode, DEFAULT_XML_OPTIONS); XmlObject xoList[] = transDoc.getTransform().selectChildren(RelationshipReferenceDocument.type.getDocumentElementName()); if (xoList.length == 0) { LOG.log(POILogger.WARN, "no RelationshipReference/@SourceId parameters present"); } for (XmlObject xo : xoList) { String sourceId = ((CTRelationshipReference)xo).getSourceId(); LOG.log(POILogger.DEBUG, "sourceId: ", sourceId); this.sourceIds.add(sourceId); } } catch (XmlException e) { throw new InvalidAlgorithmParameterException(e); } }
private static Map buildDocumentMap(SchemaType[] types) { Map result = new LinkedHashMap(); for (int i = 0; i < types.length; i++) result.put(types[i].getDocumentElementName(), types[i].getRef()); return result; }
void writeDocumentTypeMap(SchemaType[] doctypes) { writeShort(doctypes.length); for (int i = 0; i < doctypes.length; i++) { writeQName(doctypes[i].getDocumentElementName()); writeHandle(doctypes[i]); } }
for (int i = 0; i < globalElems.length; i++) if (rootName.equals(globalElems[i].getDocumentElementName().getLocalPart()))
name = type.getDocumentElementName(); suffix = "Doc";
@Override protected QName getSupportedQName() { return ObservationDocument.type.getDocumentElementName(); }
static QName findTopName(SchemaType sType) { if (sType.getName() != null) return sType.getName(); if (sType.isDocumentType()) { // A document type must have a content model consisting of a single elt if (sType.getContentModel() == null || sType.getContentModel().getParticleType() != SchemaParticle.ELEMENT) throw new IllegalStateException(); return (sType.getDocumentElementName()); } if (sType.isAttributeType()) { if (sType.getAttributeModel() == null || sType.getAttributeModel().getAttributes().length != 1) throw new IllegalStateException(); return sType.getAttributeTypeAttributeName(); } SchemaField sElt = sType.getContainerField(); assert(sElt != null); assert(sType.getOuterType() == null); return sElt.getName(); }
thename = sType.getDocumentElementName(); emit(" * An XML document type.");
/** * * @return the job definition of the selected application SDT */ public JobDefinitionType getSelectedJobDefinition() { final QName jobDefQName = JobDefinitionDocument.type.getDocumentElementName(); return (JobDefinitionType) selectedApplicationSDT.selectChildren( jobDefQName )[0]; }
private static Map buildDocumentMap(SchemaType[] types) { Map result = new LinkedHashMap(); for (int i = 0; i < types.length; i++) result.put(types[i].getDocumentElementName(), types[i].getRef()); return result; }
private static Map buildDocumentMap(SchemaType[] types) { Map result = new LinkedHashMap(); for (int i = 0; i < types.length; i++) result.put(types[i].getDocumentElementName(), types[i].getRef()); return result; }
QName requesteddocElemNameName = requestedType.getDocumentElementName(); verifyDocumentType(c, type.getDocumentElementName()); else if (type.isAttributeType()) verifyAttributeType(c, type.getAttributeTypeAttributeName());
return "document type " + readable(sType.getDocumentElementName(), nsPrefix);
writeString("_XO_" + QNameHelper.pretty(type.getDocumentElementName()));
t = t.getOuterType(); if (t.isDocumentType()) hasNS = t.getDocumentElementName().getNamespaceURI().length() > 0; else hasNS = t.getName().getNamespaceURI().length() > 0;
t = t.getOuterType(); if (t.isDocumentType()) hasNS = t.getDocumentElementName().getNamespaceURI().length() > 0; else hasNS = t.getName().getNamespaceURI().length() > 0;
void writeDocumentTypeMap(SchemaType[] doctypes) { writeShort(doctypes.length); for (int i = 0; i < doctypes.length; i++) { writeQName(doctypes[i].getDocumentElementName()); writeHandle(doctypes[i]); } }
void writeDocumentTypeMap(SchemaType[] doctypes) { writeShort(doctypes.length); for (int i = 0; i < doctypes.length; i++) { writeQName(doctypes[i].getDocumentElementName()); writeHandle(doctypes[i]); } }
name = sType.getDocumentElementName(); else if (sType.isAttributeType()) name = sType.getAttributeTypeAttributeName();
@Override public void advertise( AdvertiseInputDocument input ) throws NegotiationException, ResourceUnknownException, ResourceUnavailableException { NegotiationOfferType[] offers = input.getAdvertiseInput().getNegotiationOfferArray(); QNameSet others = QNameSet.forWildcardNamespaceString( "##other", NegotiateInputDocument.type.getDocumentElementName().getNamespaceURI() ); XmlObject[] noncritical = input.getAdvertiseInput().selectChildren( others ); getNegotiation().advertise( offers, noncritical ); }