antsnest.antinfo
Interface AttributeDefinition

All Known Implementing Classes:
DefaultAttributeDefinition

public interface AttributeDefinition

What information is needed about an attribute

Author:
Chris Clohosy

Method Summary
 String[] getConditions()
          Gets the conditions that make this attribute required
 String getName()
          Gets the name of this attribute
 boolean hasConditions()
          Whether there are any conditions that make this attribute required
 boolean isRequired()
          Whether this attribute is required
 

Method Detail

getName

String getName()
Gets the name of this attribute

Returns:
a String, the name

isRequired

boolean isRequired()
Whether this attribute is required

Returns:
a boolean, whether it's required

hasConditions

boolean hasConditions()
Whether there are any conditions that make this attribute required

Returns:
a boolean, if there are any

getConditions

String[] getConditions()
Gets the conditions that make this attribute required

Returns:
a String[], the conditions