Examples of attribute()


Examples of org.dom4j.Element.attribute()

      XPath resourceXPath = rootElement.createXPath("//ns:resource[@identifier='" + identifierref + "']");
      resourceXPath.setNamespaceURIs(nsuris);
      Element elResource = (Element)resourceXPath.selectSingleNode(elResources);
      if (elResource == null) throw new AddingResourceException("resource.no.matching.resource");
      //check for scorm attribute
      Attribute scormAttr = elResource.attribute("scormtype");
      //some packages have attribute written like "scormType"
      Attribute scormAttrUpper = elResource.attribute("scormType");
      if (scormAttr == null && scormAttrUpper == null) throw new AddingResourceException("scorm.no.attribute.scormtype");
      String attr = "";
      if (scormAttr != null) attr = scormAttr.getStringValue();
View Full Code Here

Examples of org.dom4j.Element.attribute()

      Element elResource = (Element)resourceXPath.selectSingleNode(elResources);
      if (elResource == null) throw new AddingResourceException("resource.no.matching.resource");
      //check for scorm attribute
      Attribute scormAttr = elResource.attribute("scormtype");
      //some packages have attribute written like "scormType"
      Attribute scormAttrUpper = elResource.attribute("scormType");
      if (scormAttr == null && scormAttrUpper == null) throw new AddingResourceException("scorm.no.attribute.scormtype");
      String attr = "";
      if (scormAttr != null) attr = scormAttr.getStringValue();
      if (scormAttrUpper != null) attr = scormAttrUpper.getStringValue();
      if (attr == null) throw new AddingResourceException("scorm.no.attribute.value");
View Full Code Here

Examples of org.dom4j.Element.attribute()

      if (identifierref == null) continue;
      XPath resourceXPath = rootElement.createXPath("//ns:resource[@identifier='" + identifierref + "']");
      resourceXPath.setNamespaceURIs(nsuris);
      Element elResource = (Element)resourceXPath.selectSingleNode(elResources);
      if (elResource == null) throw new AddingResourceException("resource.no.matching.resource");
      if (elResource.attribute("scormtype") != null) return false;
      if (elResource.attribute("scormType") != null) return false;
      if (elResource.attribute("SCORMTYPE") != null) return false;
      if (elResource.attributeValue("href") != null) return true; // success.
    }
    return false;
View Full Code Here

Examples of org.dom4j.Element.attribute()

      XPath resourceXPath = rootElement.createXPath("//ns:resource[@identifier='" + identifierref + "']");
      resourceXPath.setNamespaceURIs(nsuris);
      Element elResource = (Element)resourceXPath.selectSingleNode(elResources);
      if (elResource == null) throw new AddingResourceException("resource.no.matching.resource");
      if (elResource.attribute("scormtype") != null) return false;
      if (elResource.attribute("scormType") != null) return false;
      if (elResource.attribute("SCORMTYPE") != null) return false;
      if (elResource.attributeValue("href") != null) return true; // success.
    }
    return false;
    //throw new AddingResourceException("resource.general.error");
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.NodeValue.attribute()

                        for (int j = 0; j < selfRecords.size(); j++) {
                            UnmarshalRecord nestedRecord = selfRecords.get(j);
                            if(nestedRecord != null){
                                attributeNodeValue = nestedRecord.getAttributeChildNodeValue(attNamespace, attLocalName);
                                if (attributeNodeValue != null) {
                                    attributeNodeValue.attribute(nestedRecord, attNamespace, attLocalName, value);
                                }
                            }
                        }
                    }
                    if (attributeNodeValue == null) {
View Full Code Here

Examples of org.eclipse.persistence.oxm.annotations.XmlVariableNode.attribute()

             
            }
            if(!variableNode.value().equals("##default")){
              property.setVariableAttributeName(variableNode.value())
            }
            property.setVariableNodeAttribute(variableNode.attribute());
        }
       
       
        if((ptype.isArray()  && !areEquals(ptype, byte[].class))  || (helper.isCollectionType(ptype) && !helper.isAnnotationPresent(javaHasAnnotations, XmlList.class)) ){
          property.setNillable(true);
View Full Code Here

Examples of org.exist.util.serializer.SAXSerializer.attribute()

                XmldbURI binUri = XmldbURI.create(diffUri.toString() + BINARY_SUFFIX);
                broker.copyResource(transaction, document, vCollection, binUri);

                //Create metadata about the last Binary Version
                sax.startElement(ELEMENT_REPLACED_BINARY, null);
                sax.attribute(ATTRIBUTE_REF, binUri.toString());
                sax.endElement(ELEMENT_REPLACED_BINARY);
              } else if(lastRev instanceof BinaryDocument) {
                //create a copy of the last XML revision
                XmldbURI xmlUri = XmldbURI.create(diffUri.toString() + XML_SUFFIX);
                broker.copyResource(transaction, document, vCollection, xmlUri);
View Full Code Here

Examples of org.geotools.feature.TypeBuilder.attribute()

        TypeBuilder builder = new TypeBuilder(typeFactory);
        builder.setNamespaceURI(NSURI);

        builder.setName("sitename");
        builder.setBinding(String.class);
        AttributeType SITENAME = builder.attribute();

        builder.setName("anzlic_noType");
        builder.setBinding(String.class);
        AttributeType ANZLIC_NO = builder.attribute();
View Full Code Here

Examples of org.geowebcache.io.XMLBuilder.attribute()

        XMLBuilder xml = new XMLBuilder(str);
       
        try {
            xml.header("1.0", encoding);
            xml.indentElement("Capabilities");
            xml.attribute("xmlns", "http://www.opengis.net/wmts/1.0");
            xml.attribute("xmlns:ows", "http://www.opengis.net/ows/1.1");
            xml.attribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
            xml.attribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
            xml.attribute("xmlns:gml", "http://www.opengis.net/gml");
            xml.attribute("xsi:schemaLocation", "http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd");
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.AttributeReference.attribute()

                String bean = null;
                String attribute = null;
                AttributeReference ar = method.getAnnotation(AttributeReference.class);
                if (ar != null) {
                    bean = ar.bean();
                    attribute = ar.attribute();
                }
                if (!StringUtil.notEmpty(bean)) {
                    bean = defaultBean;
                }
                if (!StringUtil.notEmpty(attribute)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.