@JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public String getName() { return super.getName(); }
@Override @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public String getDisplayName() { displayName = getTranslation( TranslationProperty.NAME, displayName ); return displayName != null ? displayName : getName(); }
@Override public String toString() { return "{" + "\"class\":\"" + getClass() + "\", " + "\"id\":\"" + getId() + "\", " + "\"uid\":\"" + getUid() + "\", " + "\"code\":\"" + getCode() + "\", " + "\"name\":\"" + getName() + "\", " + "\"created\":\"" + getCreated() + "\", " + "\"lastUpdated\":\"" + getLastUpdated() + "\" " + "}"; } }
/** * Equality check against typed identifiable object. This method is not * vulnerable to proxy issues, where an uninitialized object class type * fails comparison to a real class. * * @param other the identifiable object to compare this object against. * @return true if equal. */ public boolean typedEquals( IdentifiableObject other ) { if ( other == null ) { return false; } if ( getUid() != null ? !getUid().equals( other.getUid() ) : other.getUid() != null ) { return false; } if ( getCode() != null ? !getCode().equals( other.getCode() ) : other.getCode() != null ) { return false; } if ( getName() != null ? !getName().equals( other.getName() ) : other.getName() != null ) { return false; } return true; }
.forEach( b -> map.put( b.getUid(), new MetadataItem( b.getName(), b.getUid(), b.getCode() ) ) );