@@ -65,6 +65,7 @@ type AttributePath struct {
6565 AttributeName string
6666 SubAttribute * string
6767}
68+
6869func (p AttributePath ) String () string {
6970 s := p .AttributeName
7071 if p .URIPrefix != nil {
@@ -75,6 +76,7 @@ func (p AttributePath) String() string {
7576 }
7677 return s
7778}
79+
7880// SubAttributeName returns the sub attribute name if present.
7981// Returns an empty string otherwise.
8082func (p * AttributePath ) SubAttributeName () string {
@@ -83,6 +85,7 @@ func (p *AttributePath) SubAttributeName() string {
8385 }
8486 return ""
8587}
88+
8689// URI returns the URI if present.
8790// Returns an empty string otherwise.
8891func (p * AttributePath ) URI () string {
@@ -115,7 +118,7 @@ func (e LogicalExpression) String() string {
115118 return fmt .Sprintf ("%v %s %v" , e .Left , e .Operator , e .Right )
116119}
117120
118- func (* LogicalExpression ) exprNode () {}
121+ func (* LogicalExpression ) exprNode () {}
119122
120123// LogicalOperator represents a logical operation such as 'and' / 'or'.
121124type LogicalOperator string
@@ -129,7 +132,7 @@ func (e NotExpression) String() string {
129132 return fmt .Sprintf ("not(%v)" , e .Expression )
130133}
131134
132- func (* NotExpression ) exprNode () {}
135+ func (* NotExpression ) exprNode () {}
133136
134137// Path describes the target of a PATCH operation. Path can have an optional
135138// ValueExpression and SubAttribute.
@@ -173,4 +176,4 @@ func (e ValuePath) String() string {
173176 return fmt .Sprintf ("%v[%v]" , e .AttributePath , e .ValueFilter )
174177}
175178
176- func (* ValuePath ) exprNode () {}
179+ func (* ValuePath ) exprNode () {}
0 commit comments