public void readFromElement()

in source/com.microsoft.tfs.core.ws/generated-src/ms/tfs/versioncontrol/clientservices/_03/_Conflict.java [963:1190]


    public void readFromElement(final XMLStreamReader reader)
        throws XMLStreamException
    {
        String localName;

        // Attributes
        final int attributeCount = reader.getAttributeCount();
        String attributeValue;

        for (int i = 0; i < attributeCount; i++)
        {
            localName = reader.getAttributeLocalName(i);
            attributeValue = reader.getAttributeValue(i);

            if (localName.equalsIgnoreCase("cid"))
            {
                this.cid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("pcid"))
            {
                this.pcid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ychg"))
            {
                this.ychg = new _ChangeType();
                this.ychg.readFromAttribute(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ychgEx"))
            {
                this.ychgEx = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ysitem"))
            {
                this.ysitem = attributeValue;
            }
            else if (localName.equalsIgnoreCase("ysitemsrc"))
            {
                this.ysitemsrc = attributeValue;
            }
            else if (localName.equalsIgnoreCase("yenc"))
            {
                this.yenc = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("yprop"))
            {
                this.yprop = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ytype"))
            {
                this.ytype = _ItemType.fromString(attributeValue);
            }
            else if (localName.equalsIgnoreCase("yver"))
            {
                this.yver = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("yitemid"))
            {
                this.yitemid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ydid"))
            {
                this.ydid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ylchg"))
            {
                this.ylchg = new _ChangeType();
                this.ylchg.readFromAttribute(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ylchgEx"))
            {
                this.ylchgEx = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ylmver"))
            {
                this.ylmver = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bsitem"))
            {
                this.bsitem = attributeValue;
            }
            else if (localName.equalsIgnoreCase("benc"))
            {
                this.benc = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bprop"))
            {
                this.bprop = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bitemid"))
            {
                this.bitemid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bver"))
            {
                this.bver = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bhash"))
            {
                this.bhash = XMLConvert.toByteArray(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bdid"))
            {
                this.bdid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("btype"))
            {
                this.btype = _ItemType.fromString(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bchg"))
            {
                this.bchg = new _ChangeType();
                this.bchg.readFromAttribute(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bchgEx"))
            {
                this.bchgEx = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("titemid"))
            {
                this.titemid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tver"))
            {
                this.tver = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tsitem"))
            {
                this.tsitem = attributeValue;
            }
            else if (localName.equalsIgnoreCase("tenc"))
            {
                this.tenc = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tprop"))
            {
                this.tprop = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("thash"))
            {
                this.thash = XMLConvert.toByteArray(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tdid"))
            {
                this.tdid = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("ttype"))
            {
                this.ttype = _ItemType.fromString(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tlmver"))
            {
                this.tlmver = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tverf"))
            {
                this.tverf = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tctyp"))
            {
                this.tctyp = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("isc"))
            {
                this.isc = XMLConvert.toBoolean(attributeValue);
            }
            else if (localName.equalsIgnoreCase("tsn"))
            {
                this.tsn = attributeValue;
            }
            else if (localName.equalsIgnoreCase("tson"))
            {
                this.tson = attributeValue;
            }
            else if (localName.equalsIgnoreCase("srclitem"))
            {
                this.srclitem = attributeValue;
            }
            else if (localName.equalsIgnoreCase("tgtlitem"))
            {
                this.tgtlitem = attributeValue;
            }
            else if (localName.equalsIgnoreCase("ctype"))
            {
                this.ctype = _ConflictType.fromString(attributeValue);
            }
            else if (localName.equalsIgnoreCase("reason"))
            {
                this.reason = XMLConvert.toInt(attributeValue);
            }
            else if (localName.equalsIgnoreCase("isnamecflict"))
            {
                this.isnamecflict = XMLConvert.toBoolean(attributeValue);
            }
            else if (localName.equalsIgnoreCase("isforced"))
            {
                this.isforced = XMLConvert.toBoolean(attributeValue);
            }
            else if (localName.equalsIgnoreCase("res"))
            {
                this.res = _Resolution.fromString(attributeValue);
            }
            else if (localName.equalsIgnoreCase("isresolved"))
            {
                this.isresolved = XMLConvert.toBoolean(attributeValue);
            }
            else if (localName.equalsIgnoreCase("bdurl"))
            {
                this.bdurl = attributeValue;
            }
            else if (localName.equalsIgnoreCase("tdurl"))
            {
                this.tdurl = attributeValue;
            }
            else if (localName.equalsIgnoreCase("ydurl"))
            {
                this.ydurl = attributeValue;
            }
            else if (localName.equalsIgnoreCase("copt"))
            {
                this.copt = XMLConvert.toInt(attributeValue);
            }

            // Ignore unknown attributes.
        }

        // This object uses no elements, so read until our element end
        XMLStreamReaderHelper.readUntilElementEnd(reader);
    }