コード例 #1
0
  public boolean isBoundTo(Object node) {
    if (!(node instanceof Element)) return false;

    if (myMapAnnotation != null && !myMapAnnotation.surroundWithTag()) {
      return myMapAnnotation.entryTagName().equals(((Element) node).getName());
    }

    return ((Element) node).getName().equals(Constants.MAP);
  }
コード例 #2
0
 private String getEntryAttributeName() {
   return myMapAnnotation == null ? ENTRY : myMapAnnotation.entryTagName();
 }