private boolean shouldUseShortNames() { final NodeEntity graphEntity = getAnnotation(NodeEntity.class); if (graphEntity != null) return graphEntity.useShortNames(); final RelationshipEntity graphRelationship = getAnnotation(RelationshipEntity.class); if (graphRelationship != null) return graphRelationship.useShortNames(); return false; }
public ChildAssociationRef getRef(QNameDAO qnameDAO) { QName typeQName = qnameDAO.getQName(typeQNameId).getSecond(); QName qname = QName.createQName(qnameDAO.getNamespace(qnameNamespaceId).getSecond(), qnameLocalName); return new ChildAssociationRef( typeQName, parentNode.getNodeRef(), qname, childNode.getNodeRef(), isPrimary, assocIndex); }
@Override public String toString() { StringBuilder buffer = new StringBuilder(); buffer.append("PONG: ").append(pingEntity.getContact()).append("\n"); Contact[] contacts = nodeEntity.getContacts(); buffer.append("CONTACTS ").append(contacts.length).append("\n"); for (Contact contact : contacts) { buffer.append(" ").append(contact); } return buffer.toString(); }