Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/rxm.git

Minor simplification to xmlattributes creation.

Author Dave Jarvis <email>
Date 2015-03-11 19:27:20 GMT-0700
Commit 5a50cd0451a3c650a04a0b3098a0b314149a6255
Parent 1a035e4
source/java/com/whitemagicsoftware/rxm/tree/xml/AttributeMapContext.java
* Opens the XMLATTRIBUTES expression.
*
- * @return ",XMLATTRIBUTES(" ...
+ * @return Token containing ",XMLATTRIBUTES(" ...
*/
@Override
public Token getStart() {
- return new Token( hasPrecedingPayload() ?
- String.format( ",%s",
- nextAttribute(
- getTableName(),
- getColumnName(),
- getAttributeName()
- )
- )
- :
- String.format( ",%s",
- firstAttribute(
- getTableName(),
- getColumnName(),
- getAttributeName()
- )
+ return new Token(
+ String.format( ",%s", hasPrecedingPayload() ?
+ nextAttribute( getTableName(), getColumnName(), getAttributeName() ) :
+ firstAttribute( getTableName(), getColumnName(), getAttributeName() )
)
);
}
/**
* Closes the XMLATTRIBUTES expression, should no more attributes be
* forthcoming.
*
- * @return ")" or the empty string.
+ * @return Token containing ")" or the empty string.
*/
@Override
Delta 6 lines added, 17 lines removed, 11-line decrease