/** * Determines access for field based upon existing metadata and XML * attributes. * * @param field FieldMetaData current metadata for field * @param attrs XML Attributes defined on this field */ private int getFieldAccess(FieldMetaData field, Attributes attrs) { if (attrs != null) { String access = attrs.getValue("access"); if ("PROPERTY".equals(access)) return AccessCode.EXPLICIT | AccessCode.PROPERTY; if ("FIELD".equals(access)) return AccessCode.EXPLICIT | AccessCode.FIELD; } // Check access defined on field, if provided if (field != null) { return field.getAccessType(); } // Otherwise, get the default access type of the declaring class ClassMetaData meta = (ClassMetaData) currentElement(); if (meta != null) { return AccessCode.toFieldCode(meta.getAccessType()); } return AccessCode.UNKNOWN; }
/** * Determines access for field based upon existing metadata and XML * attributes. * * @param field FieldMetaData current metadata for field * @param attrs XML Attributes defined on this field * @return */ private int getFieldAccess(FieldMetaData field, Attributes attrs) { if (attrs != null) { String access = attrs.getValue("access"); if ("PROPERTY".equals(access)) return AccessCode.EXPLICIT | AccessCode.PROPERTY; if ("FIELD".equals(access)) return AccessCode.EXPLICIT | AccessCode.FIELD; } // Check access defined on field, if provided if (field != null) { return field.getAccessType(); } // Otherwise, get the default access type of the declaring class ClassMetaData meta = (ClassMetaData) currentElement(); if (meta != null) { return AccessCode.toFieldCode(meta.getAccessType()); } return AccessCode.UNKNOWN; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }
/** * Determines access for field based upon existing metadata and XML * attributes. * * @param field FieldMetaData current metadata for field * @param attrs XML Attributes defined on this field */ private int getFieldAccess(FieldMetaData field, Attributes attrs) { if (attrs != null) { String access = attrs.getValue("access"); if ("PROPERTY".equals(access)) return AccessCode.EXPLICIT | AccessCode.PROPERTY; if ("FIELD".equals(access)) return AccessCode.EXPLICIT | AccessCode.FIELD; } // Check access defined on field, if provided if (field != null) { return field.getAccessType(); } // Otherwise, get the default access type of the declaring class ClassMetaData meta = (ClassMetaData) currentElement(); if (meta != null) { return AccessCode.toFieldCode(meta.getAccessType()); } return AccessCode.UNKNOWN; }
/** * Determines access for field based upon existing metadata and XML * attributes. * * @param field FieldMetaData current metadata for field * @param attrs XML Attributes defined on this field * @return */ private int getFieldAccess(FieldMetaData field, Attributes attrs) { if (attrs != null) { String access = attrs.getValue("access"); if ("PROPERTY".equals(access)) return AccessCode.EXPLICIT | AccessCode.PROPERTY; if ("FIELD".equals(access)) return AccessCode.EXPLICIT | AccessCode.FIELD; } // Check access defined on field, if provided if (field != null) { return field.getAccessType(); } // Otherwise, get the default access type of the declaring class ClassMetaData meta = (ClassMetaData) currentElement(); if (meta != null) { return AccessCode.toFieldCode(meta.getAccessType()); } return AccessCode.UNKNOWN; }
/** * Gets the access type used by this field. If no access type is set for * this field then return the access type used by the declaring class. */ public int getAccessType() { if (AccessCode.isUnknown(_access)) { int fCode = AccessCode.toFieldCode(getDeclaringMetaData() .getAccessType()); return fCode; } return _access; }