Attr isId - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Attr isId method.

This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Header header = (Header) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            header.getUnknownAttributes().registerID(attribQName);
        } 
        header.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Body body = (Body) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            body.getUnknownAttributes().registerID(attribQName);
        } 
        body.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Detail detail = (Detail) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            detail.getUnknownAttributes().registerID(attribQName);
        } 
        detail.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
     *  
     * {@inheritDoc} 
     */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributeExtensibleXMLObject anyAttribute = (AttributeExtensibleXMLObject) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            anyAttribute.getUnknownAttributes().registerID(attribQName);
        } 
        anyAttribute.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
} 
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
    } 
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Envelope envelope = (Envelope) xmlObject;
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
        if (attribute.isId()) {
            envelope.getUnknownAttributes().registerID(attribQName);
        } 
        envelope.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        // do nothing, no child content 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;
 
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
 
        if (attribute.isId()) {
            authnCtcDecl.getUnknownAttributes().registerID(attribQName);
        } 
 
        authnCtcDecl.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AuthnContextDecl authnCtcDecl = (AuthnContextDecl) xmlObject;
 
        authnCtcDecl.setTextContent(elementContent);
6
CodeRank
This code example shows how to use the following methods:getValue, isId, getLocalName, getNamespaceURI, getPrefix
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        XSAny xsAny = (XSAny) xmlObject;
 
        QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
                .getPrefix());
 
        if (attribute.isId()) {
            xsAny.getUnknownAttributes().registerID(attribQName);
        } 
 
        xsAny.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        XSAny xsAny = (XSAny) xmlObject;
 
        xsAny.setTextContent(elementContent);
6
CodeRank
This code example shows how to use the following methods:getOwnerElement, isId
     * the Apache XML Security library. 
     *  
     * @param attribute the DOM attribute to be checked 
     */ 
    protected void checkIDAttribute(Attr attribute) {
        QName attribName = XMLHelper.getNodeQName(attribute);
        if (Configuration.isIDAttribute(attribName) && !attribute.isId()) {
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } 
    } 
 
    /** 
     * Unmarshalls given Element's children. For each child an unmarshaller is retrieved using 
     * {@link UnmarshallerFactory#getUnmarshaller(Element)}. The unmarshaller is then used to unmarshall the child 
     * element and the resultant XMLObject is passed to {@link #processChildElement(XMLObject, XMLObject)} for further 
     * processing. 
     *  
     * @param xmlObject the parent object of the unmarshalled children 
     * @param childElement the child element to be unmarshalled 
     *  
5
CodeRank
This code example shows how to use the following methods:getValue, isId
     * {@inheritDoc} 
     */ 
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        Organization org = (Organization) samlObject;
 
        QName attribQName = XMLHelper.getNodeQName(attribute);
        if (attribute.isId()) {
            org.getUnknownAttributes().registerID(attribQName);
        } 
        org.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
} 
5
CodeRank
This code example shows how to use the following methods:getValue, isId
 
    /** {@inheritDoc} */ 
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ResourceContentType resourceContent = (ResourceContentType) xmlObject;
 
        QName attribQName = XMLHelper.getNodeQName(attribute);
        if (attribute.isId()) {
            resourceContent.getUnknownAttributes().registerID(attribQName);
        } 
        resourceContent.getUnknownAttributes().put(attribQName, attribute.getValue());
    } 
 
    /** {@inheritDoc} */ 
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException { 
        ResourceContentType resourceContent = (ResourceContentType) parentXMLObject;
        resourceContent.getUnknownXMLObjects().add(childXMLObject);
    } 
 
    /** {@inheritDoc} */ 
5
CodeRank
isId Method Overview
Returns whether this attribute is known to be of type ID (i.e.
See Code Examples for other Java 8 Attr Methods: