Skip to content

Commit

Permalink
Merge pull request #391 from katarinaking/831
Browse files Browse the repository at this point in the history
MNEMONIC-831: Enhanced Code Documentation
  • Loading branch information
katarinaking committed Jun 14, 2024
2 parents 5cee2b5 + 730c217 commit 2332cc8
Showing 1 changed file with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,92 @@

import org.apache.mnemonic.DurableType;

/**
* This class represents information about an attribute, including its name,
* type, sort order, and entity field ID.
*/
public class AttributeInfo {

// The name of the attribute
private String name;

// The type of the attribute, represented by a DurableType
private DurableType type;

// The sort order of the attribute
private SortOrder sortOrder;

// The ID of the entity field associated with this attribute
private long entityFieldId;

/**
* Gets the name of the attribute.
*
* @return the name of the attribute
*/
public String getName() {
return name;
}

/**
* Sets the name of the attribute.
*
* @param name the new name of the attribute
*/
public void setName(String name) {
this.name = name;
}

/**
* Gets the sort order of the attribute.
*
* @return the sort order of the attribute
*/
public SortOrder getSortOrder() {
return sortOrder;
}

/**
* Sets the sort order of the attribute.
*
* @param sortOrder the new sort order of the attribute
*/
public void setSortOrder(SortOrder sortOrder) {
this.sortOrder = sortOrder;
}

/**
* Gets the type of the attribute.
*
* @return the type of the attribute
*/
public DurableType getType() {
return type;
}

/**
* Sets the type of the attribute.
*
* @param type the new type of the attribute
*/
public void setType(DurableType type) {
this.type = type;
}

/**
* Gets the entity field ID associated with the attribute.
*
* @return the entity field ID
*/
public long getEntityFieldId() {
return entityFieldId;
}

/**
* Sets the entity field ID associated with the attribute.
*
* @param entityFieldId the new entity field ID
*/
public void setEntityFieldId(long entityFieldId) {
this.entityFieldId = entityFieldId;
}
Expand Down

0 comments on commit 2332cc8

Please sign in to comment.