/** * This returns true if the attribute is reserved. An attribute * is considered reserved if it begins with "xml" according to * the namespaces in XML 1.0 specification. Such attributes are * used for namespaces and other such details. * * @return this returns true if the attribute is reserved */ public boolean isReserved() { String prefix = getPrefix(); String name = getName(); if(prefix != null) { return prefix.startsWith(RESERVED); } return name.startsWith(RESERVED); }
/** * This returns true if the attribute is reserved. An attribute * is considered reserved if it begins with "xml" according to * the namespaces in XML 1.0 specification. Such attributes are * used for namespaces and other such details. * * @return this returns true if the attribute is reserved */ public boolean isReserved() { String prefix = getPrefix(); String name = getName(); if(prefix != null) { return prefix.startsWith(RESERVED); } return name.startsWith(RESERVED); }
/** * This returns true if the attribute is reserved. An attribute * is considered reserved if it begins with "xml" according to * the namespaces in XML 1.0 specification. Such attributes are * used for namespaces and other such details. * * @return this returns true if the attribute is reserved */ public boolean isReserved() { String prefix = getPrefix(); String name = getName(); if(prefix != null) { return prefix.startsWith(RESERVED); } return name.startsWith(RESERVED); }