From an asset type, you can get the set of attribute constraints (available and required asset attributes) by using the method RAMAssetType.getAttributeConstraints().
//Get all Asset Type Attribute Constraints
RAMAttributeConstraint[] attributeConstraints = assetType.getAttributeConstraints();