/** * Return a String representing the value of this union. * * @return String representation of this union's value. */ public String stringValue() { if (_ipAddress != null) { return _ipAddress.stringValue(); } if (_ipPrefix != null) { return _ipPrefix.stringValue(); } if (_macAddress != null) { return _macAddress.getValue().toString(); } if (_distinguishedNameType != null) { return _distinguishedNameType.getValue().toString(); } if (_asNumber != null) { return _asNumber.getValue().toString(); } throw new IllegalStateException("No value assinged"); }
/** * Return a String representing the value of this union. * * @return String representation of this union's value. */ public String stringValue() { if (_ipAddress != null) { return _ipAddress.stringValue(); } if (_ipPrefix != null) { return _ipPrefix.stringValue(); } if (_macAddress != null) { return _macAddress.getValue().toString(); } if (_distinguishedNameType != null) { return _distinguishedNameType.getValue().toString(); } if (_asNumber != null) { return _asNumber.getValue().toString(); } throw new IllegalStateException("No value assinged"); }