private boolean isWebXml(XmlFileModel xml, Document doc) { // check it's doctype against the known doctype. return !(xml.getDoctype() != null && !processDoctypeMatches(xml.getDoctype())); }
private boolean isWebXml(XmlFileModel xml, Document doc) { // check it's doctype against the known doctype. if (xml.getDoctype() != null && !processDoctypeMatches(xml.getDoctype())) { return false; } return true; }
private boolean isWebXml(XmlFileModel xml, Document doc) { // check it's doctype against the known doctype. return !(xml.getDoctype() != null && !processDoctypeMatches(xml.getDoctype())); }
@Override public boolean isValid(GraphRewrite event,EvaluationContext context, XmlFileModel model) { if (( publicId != null && !publicId.isEmpty() ) || systemId!=null) { DoctypeMetaModel doctype = model.getDoctype(); if (doctype == null ) { return false; } if(publicId != null && ( (doctype.getPublicId() == null) || !doctype.getPublicId().matches(publicId))) { return false; } if(systemId != null && ( (doctype.getSystemId() == null) || !doctype.getSystemId().matches(systemId))) { return false; } } return true; }
if (xml.getDoctype() != null) if (processDoctypeMatches(xml.getDoctype())) version = processDoctypeVersion(xml.getDoctype());
if (xml.getDoctype() != null) if (processDoctypeMatches(xml.getDoctype())) version = processDoctypeVersion(xml.getDoctype());
if (xml.getDoctype() != null) if (processDoctypeMatches(xml.getDoctype())) version = processDoctypeVersion(xml.getDoctype());
if (xmlModel.getDoctype() != null) if (!processDoctypeMatches(xmlModel.getDoctype())) String version = processDoctypeVersion(xmlModel.getDoctype()); extractMetadata(context, xmlModel, doc, version);
if (xmlModel.getDoctype() != null) if (!processDoctypeMatches(xmlModel.getDoctype())) String version = processDoctypeVersion(xmlModel.getDoctype()); extractMetadata(event, context, xmlModel, doc, version);
if (xmlModel.getDoctype() != null) if (!processDoctypeMatches(xmlModel.getDoctype())) String version = processDoctypeVersion(xmlModel.getDoctype()); extractMetadata(event, context, xmlModel, doc, version);
DoctypeMetaModel doctype = xml.getDoctype(); if (doctype == null || doctype.getPublicId() == null || !doctype.getPublicId().matches(publicId))