/** * Determine whether an attribute is an ID attribute. (The represents the * is-id property in the data model) * * @param nr the node number of the attribute * @return true if this is an ID attribute */ public boolean isIdAttribute(int nr) { try { return attType != null && getAttributeType(nr).isIdType(); } catch (MissingComponentException e) { return false; } }
/** * Determine whether an attribute is an ID attribute. (The represents the * is-id property in the data model) * * @param nr the node number of the attribute * @return true if this is an ID attribute */ public boolean isIdAttribute(int nr) { try { return attType != null && getAttributeType(nr).isIdType(); } catch (MissingComponentException e) { return false; } }
/** * Determine whether a given attribute has the is-ID property set */ public boolean isId(int index) { try { return !isDeleted(index) && (StandardNames.XML_ID_NAME.equals(names[index]) || (getProperties(index) & ReceiverOptions.IS_ID) != 0 || getTypeAnnotation(index).isIdType()); } catch (MissingComponentException e) { return false; } }
/** * Determine whether a given attribute has the is-ID property set */ public boolean isId(int index) { try { return !isDeleted(index) && (StandardNames.XML_ID_NAME.equals(names[index]) || (getProperties(index) & ReceiverOptions.IS_ID) != 0 || getTypeAnnotation(index).isIdType()); } catch (MissingComponentException e) { return false; } }
} else if ((nameCode & NamePool.FP_MASK) == StandardNames.XML_ID) { isID = true; } else if (type.isIdType()) { isID = true;
} else if ((nameCode & NamePool.FP_MASK) == StandardNames.XML_ID) { isID = true; } else if (type.isIdType()) { isID = true;